nfrankel
05/08/2021, 7:39 AMerror: backend Internal error: Exception during code generation
File being compiled: update.main.kts
The root cause java.lang.RuntimeException was thrown at: org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate(FunctionCodegen.kt:54) (update.main.kts): org.jetbrains.kotlin.backend.common.BackendException: Backend Internal error: Exception during code generation
File being compiled: update.main.kts
The root cause java.lang.RuntimeException was thrown at: org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate(FunctionCodegen.kt:54)
Error: Process completed with exit code 1.
i searched to open a bug on kotlin youtrack but didn’t find a way 😬
if a jetbrains employee finds this message, please ping meIlya Muradyan
05/08/2021, 10:38 AMIlya Muradyan
05/08/2021, 10:40 AM-Xuse-old-backend
for the script compilation, there is a chance it will be fixednfrankel
05/08/2021, 12:48 PMDoes it reproduce locally?yes
Can you share the code?https://github.com/nfrankel/nfrankel/blob/master/update.main.kts
BTW this RuntimeException should have a message, but for some reason it’s missing from your stacktrace 😞i inferred it was github truncating but i’ve got the same log locally
You may also try to addi set the version to 1.4.32 for now thank for your quick feedbackfor the script compilation, there is a chance it will be fixed-Xuse-old-backend
Ivan Kubyshkin [JetBrains]
05/12/2021, 2:09 PMilya.chernikov
05/14/2021, 3:11 PM-Xuse-old-backend
cli option.
It should actually be the default behavior for now, but for some reason scripts are being compiled with the IR backend, and some rough edges are showing up.ilya.chernikov
05/14/2021, 8:14 PMnfrankel
05/14/2021, 8:35 PMTalk
is an inner class of the *Kt
file class?ilya.chernikov
05/17/2021, 8:00 AMnfrankel
05/17/2021, 8:17 AM