i'm working on updating a compiler plugin to use k...
# compiler
t
i'm working on updating a compiler plugin to use kotlin 2.2 and i'm getting the following error:
Exception during IR lowering
with a stacktrace that starts out
Copy code
[ERROR] The root cause java.lang.IndexOutOfBoundsException was thrown at: java.base/java.util.AbstractList.subListRangeCheck(AbstractList.java:509)
[ERROR] 	at org.jetbrains.kotlin.backend.common.BackendException$Companion.report(BackendException.kt:31)
[ERROR] 	at org.jetbrains.kotlin.backend.common.BackendException$Companion.report$default(BackendException.kt:15)
[ERROR] 	at org.jetbrains.kotlin.backend.common.phaser.PerformByIrFilePhase.invoke(PerformByIrFilePhase.kt:37)
[ERROR] 	at org.jetbrains.kotlin.backend.common.phaser.PerformByIrFilePhase.invoke(PerformByIrFilePhase.kt:15)
[ERROR] 	at org.jetbrains.kotlin.backend.common.phaser.PhaseEngine.runPhase(PhaseEngine.kt:64)
[ERROR] 	at org.jetbrains.kotlin.backend.common.phaser.PhaseEngine.runPhase$default(PhaseEngine.kt:56)
[ERROR] 	at org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory.invokeLowerings(JvmIrCodegenFactory.kt:359)
[ERROR] 	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.runLowerings$cli(KotlinToJVMBytecodeCompiler.kt:415)
[ERROR] 	at org.jetbrains.kotlin.cli.pipeline.jvm.JvmBackendPipelinePhase.executePhase(JvmBackendPipelinePhase.kt:85)
...
[ERROR] Caused by: java.lang.IndexOutOfBoundsException: toIndex = 1
[ERROR] 	at java.base/java.util.AbstractList.subListRangeCheck(AbstractList.java:509)
[ERROR] 	at java.base/java.util.ArrayList.subList(ArrayList.java:1190)
[ERROR] 	at org.jetbrains.kotlin.backend.jvm.lower.SuspendLambdaLowering.generateContinuationClassForLambda(SuspendLambdaLowering.kt:162)
[ERROR] 	at org.jetbrains.kotlin.backend.jvm.lower.SuspendLambdaLowering.generateAnonymousObjectForLambda(SuspendLambdaLowering.kt:133)
[ERROR] 	at org.jetbrains.kotlin.backend.jvm.lower.SuspendLambdaLowering.access$generateAnonymousObjectForLambda(SuspendLambdaLowering.kt:113)
[ERROR] 	at org.jetbrains.kotlin.backend.jvm.lower.SuspendLambdaLowering$lower$1.visitBlock(SuspendLambdaLowering.kt:123)
i'm sure the problem is in my plugin, but the error doesn't give me any information about what code actually caused the problem. any suggestions on chasing down where the actual problem is?