can you share a sample of the setup you have? mayb...
# doodle
n
can you share a sample of the setup you have? maybe a gist or someplace so i can try to repro?
a
https://github.com/amarcolini/joos There are several modules but gui:frontend is the one with Doodle causing problems.
this is the line that shows errors in Intellij IDEA 2023.3.2, but any other code in
commonMain
that uses any inline functions from Doodle also throws an error when compiling
jvmMain
.
n
there seems to be some issue with MPP setups. i’ll have to investigate this more. i’m also going to try to remove the jvm 11 dependency since it looks like only Mockk needs it. i’ll target that for 0.10.1.
a
That issue with Mockk was fixed in 1.13.9 I'm pretty sure
👍 1
n
k. looks like 0.10.1 will be the solution. i'm hoping to get it out soon w/ this change.
👍 1
a
I stumbled across these lines in my top level
build.gradle.kts
, and removing them fixed the problem! Having java 8 compatibility is still nice though.
❤️ 1
n
ok. so there's a hiccup. i see a crash when building an app using jvm 1.8 with the new Doodle 0.10.1 that uses jvm 1.8. so there might be a runtime requirement for skiko (maybe only for MPP?) on jvm 11. i also see this in their examples: https://github.com/JetBrains/skiko/blob/a82cbd79858757a2f99bb11208e00a36cc6aea51/samples/SkiaMultiplatformSample/build.gradle.kts#L98
Copy code
Exception in thread "main" java.lang.NoSuchMethodError: java.lang.ref.PhantomReference.reachabilityFence(Ljava/lang/Object;)V
	at org.jetbrains.skia.impl.CleanableImpl.<init>(Managed.jvm.kt:76)
	at org.jetbrains.skia.impl.Cleaner.register(Managed.jvm.kt:141)
	at org.jetbrains.skia.impl.Managed.<init>(Managed.jvm.kt:53)
	at org.jetbrains.skia.impl.RefCnt.<init>(RefCnt.jvm.kt:6)
	at org.jetbrains.skia.Typeface.<init>(Typeface.kt:6)
	at org.jetbrains.skia.Typeface$Companion.makeFromName(Typeface.kt:26)
	at io.nacular.doodle.application.ApplicationHolderImpl.<init>(Application.kt:110)
	at io.nacular.doodle.application.ApplicationHolderImpl$Companion.invoke(Application.kt:213)
	at io.nacular.doodle.application.ApplicationKt.createApplication(Application.kt:76)
	at io.nacular.doodle.testapp.LandingAppKt.main(LandingApp.kt:153)
	at io.nacular.doodle.testapp.LandingAppKt.main(LandingApp.kt)
a
Yeah that's likely not easily fixable. I guess if I resolved that issue Doodle desktop will just have to stay on jvm 11. I don't think it'll be a problem.
n
yeah. i'll have to do more testing/digging to see if i can really go down to 1.8 given the skiko runtime issue. otherwise it'll remain 11.
ok. looks like
skiko
needs JVM 11. so means Doodle will continue needing it as well.