Good evening,
After some more heavy surgery our FrankenKotlin is not doing too well
:/.
Le 21/02/2025 à 18:15, Julien Plissonneau Duquène a écrit :
backport the whole scripting plugin from Kotlin 1.3.50 into our
FrankenKotlin and see how it goes
That pulled in more things than I expected but was still marginally
manageable, though I haven't (yet?) fixed a few things that broke in the
process, including the REPL console and the ability for that compiler to
rebuild itself. Some minor progresses were made and gradle's script
compiler is now going a bit further into code generation, but while
investigating the current crashes I discovered that it was caused by
incorrectly generated code in Kotlin plugins, and that code is generated
by the "regular" Kotlin 1.3.31 (I checked my Kotlin builds as far back
as December and they are almost all affected). I'm suspecting some
interference caused by the JDK 21, so I'm now testing clean rebuilds and
using diffoscope and procyon to find out the extent of damages. This
issue didn't cause compiler rebuilds to fail so far, but the scripting
code is definitely affected.
Picking features and fixes in Kotlin's git history wasn't too difficult,
which is rather good news for its maintainability as a stable package.
Next I will have to fix that compiler and try again to see if I can
start to get some gradle build script class files (correctly) generated
or if it's time to give up on that approach and start packaging Kotlin
2.0.21.
Cheers,
--
Julien Plissonneau Duquène