<@U0CHHN4F4> ok, something is wrong in the model u...
# scripting
a
@ilya.chernikov ok, something is wrong in the model used by GenericRepl (maybe the PSI loading, handing that off to the compiler because it doesn’t include the descriptor loading, which is also why I think my other things failed when recompiling the same class name). Here is how I checked it: I brought a copy of
kotlin-script-util
into the
keplin
repo so I could more easily test (working with entire Kotlin code base is just too tough at times, I then verified everything worked as-is for your unit tests. They do their own script compilation and do not use the Repl compilation. So I then added a new unit test that does a basic thing (fails even without resource resolution when not using your special annotated script definitions), and then fails again when doing the maven resolution because the descriptors (kotlin metadata) are not loaded (this uses the maven resolver). You could probably drop this test into your code base as-is: https://github.com/kohesive/keplin/blob/master/kotlin-script-util/src/test/kotlin/org/jetbrains/kotlin/script/util/TestGenericEngine.kt or pull my repo and run it there.