Leon Linhart
03/04/2020, 1:34 PMjava.lang.IllegalAccessException: class kotlin.reflect.jvm.internal.KClassImpl$Data$objectInstance$2 cannot access a member of class com.github.themrmilchmann.kwiki.dsl.SiteScriptCompilationConfiguration with modifiers "public static final"
(I will include the full stacktrace as a thread comment.)
However, my compilation configuration is a public object as shown in examples in this channel before. (object SiteScriptCompilationConfiguration : ScriptCompilationConfiguration({ ... })
)
Now my actual question is what I can do to debug this further? (Could this be an issue caused by using Java 11 as IDE runtime?)Leon Linhart
03/04/2020, 1:35 PMilya.chernikov
03/12/2020, 11:28 AMLeon Linhart
03/12/2020, 12:10 PMilya.chernikov
03/12/2020, 12:46 PMSiteScriptCompilationConfiguration
really public?ilya.chernikov
03/12/2020, 12:47 PMilya.chernikov
03/12/2020, 12:48 PMLeon Linhart
03/12/2020, 12:48 PMilya.chernikov
03/12/2020, 12:50 PMLeon Linhart
03/12/2020, 1:51 PMLeon Linhart
03/12/2020, 1:58 PMilya.chernikov
03/12/2020, 2:25 PMilya.chernikov
03/12/2020, 2:28 PMAPI for compiling a script to file?There are no proper docs and examples, but this test - https://github.com/JetBrains/kotlin/blob/1.3.70/libraries/scripting/jvm-host-test/test/kotlin/script/experimental/jvmhost/test/ScriptingHostTest.kt#L124 shows how to do it.
Leon Linhart
03/12/2020, 2:29 PMilya.chernikov
03/12/2020, 2:29 PM