https://kotlinlang.org logo
#k2-early-adopters
Title
# k2-early-adopters
m

Marc Reichelt

08/24/2022, 1:03 PM
Hey there! I tried to use K2 with Kotlin 1.7.10, and our project uses both KSP and Compose. Both don't work, because K2 only starts supporting compiler plugins on 1.7.20. Is the Compose compiler on the agenda for 1.7.20, or do we have to wait a bit longer?
d

dmitriy.novozhilov

08/24/2022, 1:25 PM
Unfortunately, Compose for K2 is blocked by MPP support, so it won't be avaliable even in 1.8.0
m

Marc Reichelt

08/24/2022, 1:26 PM
Oh, that’s a bummer! But thank you for the quick update 🙂
t

Ting-Yuan Huang

08/26/2022, 8:37 AM
KSP runs in a separate task (where the old compiler is used) prior to the compilation so it works when K2 is enabled.
Unless there is a bug 😛 Can you share the error message related to KSP?
j

Javier

08/30/2022, 1:56 PM
@dmitriy.novozhilov 1.8.0 stable?
is it not possible to add at least a workaround so it can work if you target jvm or Android?
d

dmitriy.novozhilov

08/30/2022, 3:53 PM
1.8.0 is not even branched. Of which stability are you taking?
Also MPP definitely won't be ready in 1.8.0
j

Javier

08/30/2022, 3:56 PM
I mean if compose will work with k2 with 1.8.0 stable
d

dmitriy.novozhilov

08/30/2022, 3:56 PM
It won't
j

Javier

08/30/2022, 3:56 PM
at least jvm/android part (if possible)
k2 with kmp is targeting 1.9.0 then?
d

dmitriy.novozhilov

08/30/2022, 4:03 PM
1.8.20, I hope. But it maybe delayed till 1.9.0
j

Javier

08/30/2022, 4:03 PM
thank you for the feedback!
19 Views