guys i'm losing hope with an issue - was happening...
# announcements
j
guys i'm losing hope with an issue - was happening with a gradle build but i've copied the source code into a new standard Kotlin JVM project and it's still happening. I am using IntelliJ IDEA 2017.2.5 but this issue happened after i tried 2017.3 for a brief moment then moved back
Copy code
Error:Kotlin: [Internal Error] java.lang.NoClassDefFoundError: Could not initialize class org.jetbrains.kotlin.diagnostics.DiagnosticUtils
	at org.jetbrains.kotlin.types.expressions.ExpressionTypingVisitorDispatcher.logOrThrowException(ExpressionTypingVisitorDispatcher.java:243)
	at org.jetbrains.kotlin.types.expressions.ExpressionTypingVisitorDispatcher.lambda$getTypeInfo$0(ExpressionTypingVisitorDispatcher.java:221)
	at org.jetbrains.kotlin.types.expressions.ExpressionTypingVisitorDispatcher$$Lambda$82/14319803.invoke(Unknown Source)
	at org.jetbrains.kotlin.util.PerformanceCounter.time(PerformanceCounter.kt:90)
already tried everything on this article https://github.com/JetBrains/gradle-intellij-plugin/issues/69
p
This looks like somehow some code cache is corrupted or some classpath elements are incorrect.
j
how best to destroy all cached files?
new project had only .kt files, no out dir or class files
I think it's my IDE (or combination of latest versions of something), a new project with literally fun main hello world is giving the same result ☹️ 🔫 (and yet other existing projects are ok)
j
I got a similar error when I didn't have the kotlin-stdlib-jre7 runtime
j
thanks but that is in my list of external libraries
8 is there as well 🤔
finally got this sorted 🎉 for some reason I had the path to a different
iml
file in my
.idea/modules.xml
file - changed that and it's working fine. Don't know if that is useful to anyone but thought i'd update in case it is