Hello there! Our team just recently migrated to Ko...
# kotest
y
Hello there! Our team just recently migrated to Kotest v6.0.1 and it declares support for Power-assert plugin for Kotlin 2.0+ I added plugin to project and added simple config:
Copy code
@OptIn(ExperimentalKotlinGradlePluginApi::class)
powerAssert {
    functions = listOf("io.kotest.matchers.shouldBe")
}
During compilation I see "Internal compiler error" and with some following details:
Copy code
org.jetbrains.kotlin.backend.common.BackendException: Backend Internal error: Exception during IR lowering
File being compiled: ***user route***
The root cause java.lang.AssertionError was thrown at: org.jetbrains.kotlin.backend.jvm.lower.AddContinuationLoweringKt.retargetToSuspendView(AddContinuationLowering.kt:487)
	at org.jetbrains.kotlin.backend.common.BackendException$Companion.report(BackendException.kt:31)
	at org.jetbrains.kotlin.backend.common.BackendException$Companion.report$default(BackendException.kt:15)
	at org.jetbrains.kotlin.backend.common.phaser.PerformByIrFilePhase.invoke(PerformByIrFilePhase.kt:37)
	at org.jetbrains.kotlin.backend.common.phaser.PerformByIrFilePhase.invoke(PerformByIrFilePhase.kt:15)
	at org.jetbrains.kotlin.backend.common.phaser.PhaseEngine.runPhase(PhaseEngine.kt:64)
	at org.jetbrains.kotlin.backend.common.phaser.PhaseEngine.runPhase$default(PhaseEngine.kt:56)
	at org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory.invokeLowerings(JvmIrCodegenFactory.kt:359)
    ...
Caused by: java.lang.AssertionError: FUN LOCAL_FUNCTION_FOR_LAMBDA name:invokeSuspend$lambda$0 visibility:private modality:FINAL <> ... [suspend]
	at org.jetbrains.kotlin.backend.jvm.lower.AddContinuationLoweringKt.retargetToSuspendView(AddContinuationLowering.kt:487)
    ...
Maybe somebody faced the similar problem? Is this problem kotest-related?
1
in #C06V6SFE71D channel I was suggested to use version 2.2.20 https://youtrack.jetbrains.com/issue/KT-77626 After adding 2.2.20-RC compilation was successful