Hi folks, I update to Kotlin 1.4.0 and my script s...
# scripting
s
Hi folks, I update to Kotlin 1.4.0 and my script stop work on IntelliJ. This is the exception that I'm getting in my IntelliJ plugin:
log.txt
Is not a issue releated to Scripting at all, I fix it by using
freeCompilerArgs += "-Xno-optimized-callable-references"
. I got the callable reference issue in other places as well, not just in the script.
But I have other issue, I'm using shadow plugin to add the compiler inside the final jar and is returning me that kotlin reflect is not avaiable, I event add it and its not working. (Kotlin 1.4.0)
i
Please. file an issue about the first one.
About the second one - is it 1.4-specific? I cannot understand from the stacktrace, which part of the scripting pipeline is this, but in general automatic kotlin-reflect loading by the compiler is implemented with on some assumptions in mind, that may not hold if you pack the compiler jar into your final one. (We for one are trying to avoid this approach everywhere). But if it is about a script compilation, you may try to use reflect explicitly to the classpath, and instruct compiler to avoid automatic use with
-no-reflect
cli option.
s
I think that some project that was embedding inside the final jar was Kotlin 1.3 reflection. It seems to be fixed now.