is this normal <https://dpaste.org/V3VH2/raw> (SOL...
# compose-desktop
k
is this normal https://dpaste.org/V3VH2/raw (SOLVED)
o
Just to be sure what you consider to be not normal here: do you mean that it’s weird that commoncompileDebugKotlinAndroid prints a normal errors list, but commoncompileKotlinDesktop prints a stacktrace with KotlinFrontEndException ? it seems to be not normal IMO
k
Both I guess?
Didn't expect the android one to error since it from the JB compose demo examples
o
Could you please point the example where you got that snippet?
tho
139
refers to
@OptIn(AlertDialog::class)
for Desktop
on Android it works without the
@OptIn
on desktop it fails with
This material API is experimental and is likely to change or to be removed in the future.
for
AlertDialog
i can send the project if you want
o
if it’s okay for you, could you please file a report here https://github.com/JetBrains/compose-jb
k
@OptIn(AlertDialog::class)
itself is correct tho, right?
o
yes, it’s declared here (in desktopMain) https://github.com/JetBrains/androidx/blob/jb-main/compose/material/material/src/d[…]/kotlin/androidx/compose/material/DesktopAlertDialog.desktop.kt and it has its own Experimental annotation that requires an OptIn
k
alright
seems the actual optin is
@OptIn(ExperimentalMaterialApi::class)
- https://github.com/JetBrains/compose-jb/issues/2531
also didnt know you can inline annotations o.o (like at statement level)