is there a way in idea to convert an old gradle-based amper project to a standalone one?
j
Jakub Gwóźdź
12/01/2024, 4:52 AM
Haven't tried it, but I'd imagine that if you delete all the gradle wrapper files and just install amper wrapper, that should be enough
(unless you're using some features not yet available in standalone amper)
b
bj0
12/01/2024, 5:37 AM
thats what i did, i was having trouble because i didn't have
JAVA_HOME
defined so fleet and idea both didn't recognize the project right, but running it with
./amper
was working...
bj0
12/01/2024, 5:37 AM
i eventually went back to gradle version though because i had context receives enabled and the stand-alone amper wouldn't recognize that
j
joffrey
12/02/2024, 9:21 AM
@bj0 I would be super grateful if you could share in which way context receivers didn't work in standalone Amper. Do you mean it was red in the IDE, or was it also failing when using
./amper build
? (Asking because you might be running into https://youtrack.jetbrains.com/issue/AMPER-544, which only affects the sync in the IDE, but should work fine in CLI)
Also, how did you enable them in your config? Did you use
settings.kotlin.freeCompilerArgs
or
settings.kotlin.languageFeatures
?
b
bj0
12/02/2024, 6:33 PM
It was working with
./amper
, i think it was even running in the ide, but the ide itself was showing errors. I was using
freeCompilerArgs
because I couldn't find an example of using
languageFeatures
🙏 1
bj0
12/02/2024, 6:36 PM
the ide was showing the context lines as errors, which was causing a lot of other error flags and basically disabled auto-complete and other stuff
j
joffrey
12/04/2024, 4:07 PM
Sorry for the delay in my response. Thanks for sharing this! Then it really looks like the issue I mentioned, which is being looked at at the moment 😉