is there a way in idea to convert an old gradle-ba...
# amper
b
is there a way in idea to convert an old gradle-based amper project to a standalone one?
j
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
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...
i eventually went back to gradle version though because i had context receives enabled and the stand-alone amper wouldn't recognize that
j
@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
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
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
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 😉