https://kotlinlang.org logo
Title
j

John O'Reilly

06/29/2022, 7:35 PM
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

mcpiroman

06/29/2022, 7:54 PM
I use that . But it won't work for web either
a

Arkadii Ivanov

06/30/2022, 10:23 AM
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.compiler:compiler:1.2.0-dev-k1.7.0-53370d83bb1 for compiler. See https://github.com/JetBrains/compose-jb/issues/2108
b

Benjamin Deroche

06/30/2022, 11:39 AM
@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

Arkadii Ivanov

06/30/2022, 11:45 AM
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

John O'Reilly

07/05/2022, 7:35 AM
Saw that there was
1.2.0-alpha01-dev740
there and tried it out but getting....maybe not everything published yet for that version
Could not find org.jetbrains.compose.web:web-widgets:1.2.0-alpha01-dev740
h

hfhbd

07/05/2022, 7:36 AM
Isn't the widget artifact deprecated?
j

John O'Reilly

07/05/2022, 7:38 AM
I'm not depending on it directly.....must be coming through as transitive dependency
h

hfhbd

07/05/2022, 2:28 PM
Just use the next build, 741, its ci succeeded and published all artifacts 😄
j

John O'Reilly

07/05/2022, 5:24 PM
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

John O'Reilly

07/05/2022, 7:22 PM
actually, it's working now....I had a few other tweaks to make
b

Benjamin Deroche

07/06/2022, 3:53 PM
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

John O'Reilly

07/06/2022, 6:12 PM
the changes that were made have been merged to following if you want to compare anything https://github.com/joreilly/PeopleInSpace