<@UGTVB77NF> The plugin itself or the extensions i...
# compose
r
@Horv The plugin itself or the extensions in the compiler?
h
The plugin itself I think. More or less, my problem is that when trying to add Jetpack Compose to my pet project I'm getting the following exception during `compileDebugKotlin`:
Copy code
e: java.lang.AssertionError: Assertion failed
	at org.jetbrains.kotlin.psi2ir.Psi2IrTranslator.generateModuleFragment(Psi2IrTranslator.kt:95)
   // A lot more stacktrace here
and the build fails with internal compiler error. So I was thinking it would be interesting to know what assertion is on
Psi2IrTranslator.kt:95
but it's hard to know without having access to the source code. For the RC build for Kotlin 1.4 there is an assertion with an error message on the line after: https://github.com/JetBrains/kotlin/blob/v1.4.0-rc/compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/Psi2IrTranslator.kt#L96 The master branch however have the assertion commented out: https://github.com/JetBrains/kotlin/blob/b47946cbba0272e7589564600e133db358c2c6e1/compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/Psi2IrTranslator.kt#L96 So I'm curious how the version I'm using looks like.
r
We’re not using the RC, @jim can tell you what exact version we’re on
👍 1
h
Great, that would be helpful.
h
Thanks! Guess it's this assertion https://android.googlesource.com/platform/external/jetbrains/kotlin/+/compose-dev/compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/Psi2IrTranslator.kt#95 that's failing then. So I guess some symbol in the IR was not resolved for some reason. 😕