Tried playing with CfD a bit, new project created ...
# compose-desktop
s
Tried playing with CfD a bit, new project created in IJ 203 with Kotlin 1.4.20, CfD 0.20-build132. I’m stuck at the IDE/compiler complaining that
mutableState
doesn’t have a
get()
and thus cannot be used as a delegate. Code copied from the official samples. Weirdest part is, it works with the code samples, same IDE, Kotlin version, CfD version. I suspect it may be some Kotlin compiler plugin in my build interfering — I already had to remove kotlinx.serialization as its compiler plugin would just crash with NPEs as soon as I added
@Serializable
to literally any class. Maybe it’s coroutines? Will do some further testing, was mostly wondering whether there’s any known compat issues
a
import androidx.compose.runtime.getValue
and
setValue
👍 1
they're inline extension functions rather than interface methods so that kotlinc's property delegation inlining takes effect
K 1
but the IDE's auto-import has trouble with the generics involved
😭 2
o
👍 1
c
@Adam Powell is there a bug to star for those get/set value imports?
a
Probably several
😭 1
😥 1
😂 1
😅 1
☹️ 1
😄 2
s
Thanks to all!
Will get back onto that tomorrow 🙂
That did the trick
thanks Adam 🙂
👍 1