RedTahr1
12/16/2020, 3:41 PMscriptingHost.eval(
sourceCode, scriptCompilationConfiguration, scriptEvaluationConfiguration
)
Any hint how to debug java.lang.NoClassDefFoundError
or move forward?Nikky
12/17/2020, 10:19 AMgradlew dependencies
and look for inconsistencies in the dependencies of scripting related things..
also .. google the classname that is missing and figure out in what dependency and what version of it it should be.
between those versions a lot of things moved or were moved or renamed
maybe try to recreate it in a minimal example with just the dependencies you needRedTahr1
12/17/2020, 10:41 AMgradlew dependencies
. "google the classname", I guess that is for the gradle ouput, cause I'm not seeing any in the exception log.Nikky
12/17/2020, 11:15 AMcom/intellij/openapi/util/Disposer
is what it fails to load/ find
so now the steps are to figure out where it comes from and why that is going wrong.. my guess is mismatched dependencies versions or missing dependenciesRedTahr1
12/17/2020, 11:18 AMilya.chernikov
01/22/2021, 9:01 AMkotlin-scripting-compiler
jars directly, consider removing them. It is safer to use "end-user" dependencies, like kotlin-scripting-jvm-host
, and rely on the transitive dependencies.
Please also have a look at the examples in https://github.com/Kotlin/kotlin-script-examples - the project there are set up to demonstrate minimal amount of dependencies you may need for scripting.RedTahr1
01/22/2021, 12:50 PMimplementation "org.jetbrains.kotlin:kotlin-scripting-compiler:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:$kotlin_version"
from gradle file, it works. (Actually I've actually read the "Artifacts renaming" section but did not get it...)
I've been struggling with this for long.