https://kotlinlang.org logo
t

thanksforallthefish

04/16/2021, 9:19 AM
not sure this should go here, and it does not seem strictly related to kotlin only, but has anyone seen something like (let me explain in a thread first though)?
m

Michael Böiers

04/16/2021, 9:21 AM
I’m using Kotlin in a maven based project, and I’ve run into this. It seems like the Kotlin version is not being configured from the maven pom, so I needed to make sure that I manually configure Kotlin in the IDEA settings in parallel. That’s a bit cumbersome. I also guess it would be difficult to jump between two projects using different versions (e.g. 1.4 vs. 1.5) …
t

thanksforallthefish

04/16/2021, 9:22 AM
it seems to happen every time I restart intellij since I upgraded to 2021.1, I get
kotlin not configured
and most imports, but not all, marked as red. I tried invalidating cache, reimporting the project from 0 (delete all idea-related files and reimport), but the only thing that helps is removing
Copy code
rm -f ~/Library/Application\ Support/JetBrains/IntelliJIdea2021.1
rm -rf ~/Library/Caches/JetBrains/IntelliJIdea2021.1/
which is kinda of annoying because it loses some configuration, like vpn tunnels etc
m

Michael Böiers

04/16/2021, 9:24 AM
That’s not an issue for me, also running 2021.1 …
t

thanksforallthefish

04/16/2021, 9:27 AM
it’s weird, because once it happens on a project, it happens on all other projects too. I can open any other project and see the same
kotlin not configured
and dependency not being picked 🤔
g

glenkpeterson

04/16/2021, 2:07 PM
That might be more less destructive than deleting your global configuration: • close IntelliJ • delete
.idea/
and
ProjectName.iml
files in my project •
mvn clean
• reopen IntelliJ
Auto Kotlin-configuration has been bugging me too, though my problems may be different from yours. If my work-arounds were still working, I wouldn't be on this slack right now: https://youtrack.jetbrains.com/issue/KT-45150
I just discovered the #intellij channel which might be more appropriate for this?
3 Views