Edoardo Luppi
01/17/2024, 1:50 PMThe root cause java.lang.IllegalStateException was thrown at: org.jetbrains.kotlin.ir.symbols.impl.IrBindableSymbolBase.bind(IrPrivateSymbolBase.kt:75)
IrVariableSymbolImpl is already bound. Signature: null. Owner: VAR name:_ctx type:<unbound IrClassPublicSymbolImpl> [val]: KtProperty:
Artem Kobzar
01/17/2024, 2:17 PMArtem Kobzar
01/17/2024, 2:18 PMEdoardo Luppi
01/17/2024, 2:19 PM_ctx
is wrapped into its own scope, e.g.:
if (true) {
val _ctx = ...
zzz = _ctx
}
Blocks are all like that (exactly like that).
The file that's compiling is 100k lines (around 4 megabytes).
Might be that the compiler breaks with that amount of code, or after a certain amount of nesting?
Is it happened after a plugin applying?No no
Edoardo Luppi
01/17/2024, 2:21 PMArtem Kobzar
01/17/2024, 2:29 PMEdoardo Luppi
01/17/2024, 2:35 PMvar _ctx
, getting rid of if (true) { ... }
This is the commit for the code generator template: https://github.com/Strumenta/antlr-kotlin/pull/152/commits/9d8c347cd9482d91637eeec9f302504a2a00638b
And this is the PR I was working on https://github.com/Strumenta/antlr-kotlin/pull/152Edoardo Luppi
01/17/2024, 2:35 PMIt's definitely should be reportedSounds good, I'll create a ticket anyway.
Edoardo Luppi
01/17/2024, 2:54 PMEdoardo Luppi
01/17/2024, 2:57 PMEdoardo Luppi
01/17/2024, 3:10 PM