I try to perform scripting in Kotlin 1.7.20 via the JSR223 interface.
However code that worked on previous versions fails with the following stack trace:
ERROR @NotNull method org/jetbrains/kotlin/config/CompilerConfiguration.ge
at org.jetbrains.kotlin.cli.common.repl.KotlinJsr223JvmScriptEngineBase.asJsr223EvalResult(KotlinJsr223JvmScriptEngineBase.kt:104)t org.jetbrains.kotlin.cli.common.repl.KotlinJsr223JvmScriptEngineBase.compileAndEval(KotlinJsr223JvmScriptEngineBase.kt:63)
at kotlin.script.experimental.jvmhost.jsr223.KotlinJsr223ScriptEngineImpl.compileAndEval(KotlinJsr223ScriptEngineImpl.kt:95)
at org.jetbrains.kotlin.cli.common.repl.KotlinJsr223JvmScriptEngineBase.eval(KotlinJsr223JvmScriptEngineBase.kt:31)
at java.scripting/javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:262)
at kotlinLabGlobal.Interpreter.GlobalValues.initKotlinEngine(GlobalValues.java:458)
What happens? Required a specific initialisation beyond the JSR223 standards?