Jetpack Compose Compiler was released today with Kotlin 1.7 support....is there Compose Desktop vers...
j
Jetpack Compose Compiler was released today with Kotlin 1.7 support....is there Compose Desktop version (even say dev one) that works with that right now?
👀 5
ah, I just saw in related issue mention of
0.0.0-on_kotlin_1.7.0-rc-dev705
but that doesn't seem to work with Compose for Web
m
I use that . But it won't work for web either
a
Same here, doesn't work for Compose for Web, the compile crashes - https://twitter.com/arkann1985/status/1541042021426728963 For desktop and android I use - 1.2.0-alpha01-dev725 for Compose itself and androidx.compose.compilercompiler1.2.0-dev-k1.7.0-53370d83bb1 for compiler. See https://github.com/JetBrains/compose-jb/issues/2108
b
@Arkadii Ivanov Can you detail a bit how you made it work for Android and JVM? I tried the different versions and solutions listed on this slack thread but didn't manage to make it work, I still the "Unable to find method setUseIR" error
a
As far as I remember, I had to update Compose to
1.2.0-alpha01-dev725
(later versions should also work I guess). And for the compiler version substitution I use the following code - https://github.com/JetBrains/compose-jb/issues/2108#issuecomment-1157978869
j
Saw that there was
1.2.0-alpha01-dev740
there and tried it out but getting....maybe not everything published yet for that version
Copy code
Could not find org.jetbrains.compose.web:web-widgets:1.2.0-alpha01-dev740
h
Isn't the widget artifact deprecated?
j
I'm not depending on it directly.....must be coming through as transitive dependency
h
Just use the next build, 741, its ci succeeded and published all artifacts 😄
j
Thanks, can retrieve that.....however, getting what I think is same error when trying to build Compose for Web with Kotlin 1.7.0 (though possibly that's still expected right now....)
j
actually, it's working now....I had a few other tweaks to make
b
By "working" you mean it can compile and run until you add a Button or anything clickable to the web compose ui and then the compilation crash with "e: java.lang.Exception: IR lowering failed at: Client.kt"
j
the changes that were made have been merged to following if you want to compare anything https://github.com/joreilly/PeopleInSpace