Any known issues using K2 compiler with Realm Kotl...
# realm
j
Any known issues using K2 compiler with Realm Kotlin? Still investigating but getting errors when I enabled it for a couple of KMP samples using Realm
c
I wouldn't work since we are still using some
@FirIncompatiblePluginAPI
methods our compiler plugin. We will try to get an overview of what is needed to migrate it.
👍 2
j
Hi, was there any further update on this?
particularly now that Kotlin 2.0 beta just out
c
@John O'Reilly Yes, finally caught up with this, so the 1.13.0-SNAPSHOT now supports compilation with
kotlin.experimental.tryK2=true
. There are however some other moving parts in the compiler API so there is currently an issue using latest `1.9.20` with our sync support (
library-sync
-dependency). We will try getting a real release out fixing that as soon as possible.
👍 1
Note there is also an issue combining multiple plugins that add companion objects under the hood with K2. As a workaround you can manually define an empty
companion object
. For reference the issue is tracked in YouTrack.
j
Just tested with
1.13.0
with k2 compiler enabled and looks like it's working well 👍
🎉 1