Open nedtwigg opened 1 year ago
Hmm, the documentation says Don't automatically include the Kotlin/JVM stdlib and Kotlin reflection into the classpath
, which sounded good to me, when I intitially added Kotlin support. However, I'm not a heavy Kotlin or Gradle user, so that was rather a gut decision than a well backed one from experience.
Maybe you could try to change this line, make a snapshot build and see if it is working afterwards?
Hello @casid
I tried to set the noStdLib to false and rebuild. It did not fix the issue.
To give more information, I use gradle 8.5 with quarkus plugin.
I have the error either by launching quarkusDev
or quarkusBuild quarkusRun
; so for me it does not seems to be tied to continous build mode.
And it doesn't seem to be only the kotlin stdlib but the whole classpath that have issue.
(So it may be a separe problem)
Using
3.1.0
, we are having a great experience with:TemplateEngine.createPrecompiled
Precompiled runs great in prod, the DirectoryCodeResolver gives us great near-instant hotreload locally, with both
.jte
and.kte
.The only problem we have is with Gradle continuous build. We have a hotreload setup that uses continuous build to restart the server anytime our business logic changes. And for some reason, it is erroring out on
.kte
templates like so:It's strange because the same code works great when we run it without continuous build. Not necessarily a JTE issue, but I wonder if
setNoStdlib
here ought to befalse
instead oftrue
?https://github.com/casid/jte/blob/f53fb9584e7d8526ebc7efba581efad378d3782f/jte-kotlin/src/main/java/gg/jte/compiler/kotlin/KotlinClassCompiler.java#L25-L28