are standalone amper projects supposed to work in ...
# amper
j
are standalone amper projects supposed to work in intellij or just fleet? i am using intellij latest eap and while autocomplete works for the module.yaml file itself, it does not seem to detect the whole project folder as a kotlin project and so there is no "run" option, no autocompletion, etc. for kotlin. i have tried both K2 and non K2 ide modes. note that this is just the
new-project-template
project from the github standalone examples.
a
It’s supposed to work in both. I have a suspicion where the issue might be. Could you please try the following: • Make a copy of project folder, and give it a new unique name • open that copy in Fleet Does it help?
j
hmm.. copying the project folder and loading the new one in intellij works..
a
I missed that you’ve meant IntelliJ not Fleet. But in any case, I believe you’ve been hit by AMPER-672 Switching from Gradle to standalone Amper breaks the project. Check the suggested workarounds in the ticket
👍 1
j
faced this problem multiples in intellij and the primary thing which fixed the issue was running the
sync from amper
command (invalidating caches didn't do anything, duplicating the folder sometimes worked). However this solution only worked for the latest EAP. I am not getting the sync command in the latest stable release and the other solutions didn't seem to be working either. That said, fleet seems to work consistently and i don't mind using it.
a
Do you mean, that with Fleet you don’t have issues, and can continue using it, But wanted to raise awareness, that in IntelliJ the problem still exists?
j
Yeah, with Fleet everything works fine. With Intellij, the best solution is
Sync from amper
, other solutions mentioned in the youtrack link do not work consistently for me (invalidating caches breaks things even further; duplicating/moving folders only works sometimes, so I have to usually try 2-3 times for every project I have). However - • I do not get the
Sync from amper
command in Intellij Stable but only in EAP. (both are latest versions and have latest Amper plugin installed) • And the typical sync icon which opens up for gradle files does not show up for amper yaml files for me in Intellij at all, but it does for Fleet. So AFAICT, the issue is actually that Intellij is not syncing changes automatically and for some reason not even showing up the options to do so manually.
a
I see, thanks for the details. It’s good news that you are not blocked. It would be really helpful, if you could reproduce the issue in IJ, and describe the steps that lead to it and/or attach a video in a bug report. Thanks in advance!
j
I face the issue in the template provided in the amper repo itself, but i created a bug report with videos demonstrating the issue anyway: https://youtrack.jetbrains.com/issue/AMPER-784/Standalone-Amper-projects-do-not-work-at-all-in-IntelliJ-IDEA-2024.1.4-Community-Edition
a
Thanks so much! the video is very helpful