I'm using KSP with standalone amper but with `0.6....
# amper
m
I'm using KSP with standalone amper but with
0.6.0
it doesn't see the generated files so the build fails. It passes with
0.5.0
(but IntelliJ doesn't index them so it shows error) I'm using Windows, tried with WSL 2 and result is the same
j
Thanks for letting us know. Is it possible for you to share your project? Or maybe describe at least the broken module (is it a library or app, which platforms does it target, which sources are red), that would be quite helpful.
(Also, note that you can customize the version of KSP. It was bumped to 2.1.20-1.0.31 in Amper 0.6.0. It might not be important)
m
I'm using komapper, I'll prepare a sample project on GH
I tried with the default and also newer KSP
๐Ÿ‘Œ๐Ÿป 1
the files get generated
it just seems the folder is not added somehow as source
j
The most common problem with this is that you're trying to use generated sources from a "common"/shared source set, not from a target source set
m
It's a jvm only project, there is no multiplatform stuff
j
But generated sources are only attached to platform-specific fragments (e.g. JVM, or
iosArm64
)
It's a jvm only project, there is no multiplatform stuff
Ah, then there might be a bug related to this
Can you try to use
src@jvm
instead of
src
for your directory?
๐Ÿ‘ 1
Both are technically equivalent in pure JVM projects, but they are still independent fragments, and
src@jvm
is the most specific
m
indeed,
src@jvm
works ๐Ÿ‘
๐ŸŽ‰ 1
however intelliJ still doesn't index it, is there a magic move where I can force that?
๐Ÿค” 1
j
indeed,
src@jvm
works ๐Ÿ‘๐Ÿผ
Cool! (and sorry that this is a bit confusing)
Regarding the IntelliJ issue, could you please share which version you're using? Is it 2025.1?
m
yes, CE
I guess
src@jvm
in root is not good bc now all my deps are red in intellij ๐Ÿ™€
probably related
j
Mmh that might be a separate issue actually. But worth trying to create an empty
src
folder to get rid of it