The testing setup in <https://github.com/demiurg90...
# compiler
y
The testing setup in https://github.com/demiurg906/kotlin-compiler-plugin-template seems to be out of date with 2.2.0. Is there an updated version somewhere?
d
cc @bnorm
y
Secondary question, in a box test, I'm getting a
NoClassDefFoundError
even though I have added my jar as a JVM classpath root
d
Providing a stacktrace would be helpful. I know at least two different places which could cause
NCDFE
y
I found that the template is missing a
RuntimeClasspathProvider
. There's a different template on the Kotlin repo that has it, so I adapted the code from that
👍 1
One last question, I'm getting
Caused by: java.lang.ClassNotFoundException: kotlin.coroutines.jvm.internal.SpillingKt
even though I have
+JvmEnvironmentConfigurationDirectives.STDLIB_JDK8
.
d
STDLIB_JDK8
adds
kotlin-stdlib-jdk8.jar
only to compile classpath, not box runtime classpath. It seems there is no code in the framework itself which will add it to the box classloader, so you'll need to add
testServices.standardLibrariesPathProvider.runtimeJarForTestsWithJdk8()
in the
RuntimeClasspathProvider
by yourself
thank you color 1