Hello. I'm having some issues upgrading to Kotlin ...
# intellij
s
Hello. I'm having some issues upgrading to Kotlin 1.4 on my Zorin OS. Kotlin 1.3 is running just fine. The problem occurs if I create new project with the ktor server template and try to use any collection operations. (Same thing happens if I upgrade my existing projects to kotlin 1.4) Gradle builds the project just fine, but in intellij I get unresolved reference on all kotlin collections. I've tried different JVM versions without any luck. intellij version: community 2020.2.3 SDK: I've tried with corretto 11, openjdk-8, openjdk-11. OS: Zorin os 15.3
Everything works just fine if I try to run intellij on MacOS with the same project.
a
I've seen similar https://youtrack.jetbrains.com/issue/KT-42929. Does it help to use a different dependency version like shown in the issue comments?
It might also help to remove IDEA system cache, remove .idea directory, reimport the project into IDEA. https://www.jetbrains.com/help/idea/tuning-the-ide.html#config-directory
s
Thanks. Removing system cache + idea directory did not work, but upgrading to 1.4.20-RC did work. (I also tried to downgrade from kotlin 1.4.10 -> 1.4.0 without any luck). It is a strange error, I suspect there exists some cache on my computer that messes things up, as the same project works on my mac.