Are there builds that work with Kotlin 2.0 Beta 2?
# compose-desktop
e
Are there builds that work with Kotlin 2.0 Beta 2?
l
You should be able to get it to work with version 1.5.8-dev-k2.0.0-Beta2-99ed868a0f8 of the Compose Compiler available https://androidx.dev/storage/compose-compiler/repository. I did not try it out though…
e
I had tried that and it might work but I had some build errors (not sure if k2 or compose)
o
to rule out whether it's related to k2, try setting an older language version:
Copy code
kotlin {
    compilerOptions {
        languageVersion.set("1.9")
        apiVersion.set("1.9")
    }
    ....
e
I did that and it still happens. Does that mean it's likely a compose compiler bug?
o
It could be. Did it happen with 2.0.0-Beta1? Btw, there is one more thing to try: We have a Compose Multiplatform compiler plugin that supports 2.0.0-Beta2 - org.jetbrains.compose.compilercompiler1.5.6-dev1-kt2.0.0-Beta2, it's based on a bit older jetpack compose compiler version. It's expected to work for desktop/android/web, but not for ios (for ios only with languageVersion 1.9).
e
It wasn't happening with 2.0.0-Beta1. With 2.0.0-Beta2 it works with
org.jetbrains.compose.compiler:compiler:1.5.6-dev1-kt2.0.0-Beta2
but it doesn't work with
androidx.compose.compiler:compiler:1.5.8-dev-k2.0.0-Beta2-99ed868a0f8
I'll file with issuetracker