<@UHAJKUSTU> re. issue we saw enabling K2 Compiler...
# confetti
j
@Arkadii Ivanov re. issue we saw enabling K2 Compiler in Confetti (https://youtrack.jetbrains.com/issue/KT-57984) ....haven't had chance to try again with 1.9.0 (the issue is marked as fixed but don't see it in release notes for 1.9.0)....just in case you know?
a
Nope, I didn't try K2 yet.
j
hmm, maybe that's not the issue I was thinking of....was related I think to type alias in Decompose?
a
I remember something related to Parcelable/Parcelize typealias
and still open it seems
a
Also, Essenty and Decompose are compiled with a compiler plugin for iOS that doesn't support K2 yet - parcelize-darwin. Even though Confetti doesn't use that directly, it still could be compile errors. Let me know if something related to Decompose/Essenty comes out.
Status update. Since https://youtrack.jetbrains.com/issue/KT-58892 was closed As Designed, most likely I will convert everything to kotlinx-serialization. There will be Decompose v2.1.0 once stable androidx.activity v1.8.0 is available. Right after that there will be a new alpha-beta cycle with kotlinx-serialization. The latter should unblock Confetti with K2.
👍 2
I have replaced locally (just for test) all Parcelable with Serializable. Now this line doesn't compile with K2.
Copy code
e: file:///Users/arkivanov/dev/workspace/Confetti/shared/src/androidMain/kotlin/dev/johnoreilly/confetti/ui/SessionDetailsViewSharedWrapper.kt:8:5 Symbol @Composable() fun SessionDetailViewShared(session: SessionDetails?, onSpeakerClick: (@R|kotlin/ParameterName|(name = String(speakerId))  String) -> Unit, onSocialLinkClicked: (String) -> Unit): Unit is invisible
j
hmm, strange
a
This looks like a bug in compiler, which would be nice to report. But on the other hand, perhaps this workaround is no longer needed.
If I remove this workaround, there are other compiler errors after that.
It's gonna be not so easy, I guess 🙂
j
• "Named arguments for
@Composable
lambda calls have been deprecated. This feature is relying on internal compiler APIs and will not be supported by K2. (fromhttps://developer.android.com/jetpack/androidx/releases/compose-compiler) not sure if could be related
a
Here is the another error I'm getting, just for reference. https://pastebin.com/8tEihF6i
j
I think 1.9.20 beta is out.....guessing they'll probably have some k2 related fixes in that as well
👍 1
a
I will try publishing a dev version of Decompose soon-ish to unblock the migration, and so we could file compiler bugs with reproducers.
👍 1
j
so, not quite 1.9.20 beta yet but close I think https://github.com/JetBrains/kotlin/releases/tag/build-1.9.20-Beta-246
I saw a PR for one of the wasm sample projects that was starting to use that version