JetBrains / lets-plot-skia

Skia frontend for Lets-Plot multiplatform plotting library.
MIT License
141 stars 2 forks source link

[question] When will lets-plot-skia support kotlin 2.0.0 and Compose 1.6.10? #11

Closed changhexuefei closed 2 months ago

alshan commented 6 months ago

Typically Lets-plot skia does not need to be updated with each new version of Compose multiplatform as long as backward compatibility is not broken. Have you tried to build your app with lets-plot skia and Compose Multiplatform 1.6.10?

Kotlin 2.0 should maintain backward compatibility and support older libraries. Thus, nothing stands in your way of switching to Kotlin 2.0.

There is also a versioning info in Compose Multiplatform dos : https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-compatibility-and-versioning.html#kotlin-compatibility .

changhexuefei commented 5 months ago

When I updated the Kotlin version to 1.9.24 and the Compose version to 1.6.10, the following error was reported:

org.gradle.jvmargs=-Xmx8192m -Dfile.encoding=UTF-8 kotlin.code.style=official kotlin.version=1.9.24 compose.version=1.6.10 org.gradle.warning.mode=all exposedVersion=0.49.0

image Caused by: java.lang.ClassNotFoundException: org.jetbrains.skiko.SkikoView at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525) ... 91 more Caused by: java.lang.ClassNotFoundException: org.jetbrains.skiko.SkikoView

IKupriyanov-HORIS commented 5 months ago

In v0.8.0 skiko removed input handling support and few classes, including SkikoView, that we are using.
In v1.6.10 Compose Multiplatform started to use skiko v0.8.4.

This means that for now lets-plot-skia can't be used with Compose Multiplatform v1.6.10 and higher. We need to update skiko and adapt our code to the changes. Sadly there is a critical issue for us - https://github.com/JetBrains/skiko/issues/761. Have to check is it still a problem.

alshan commented 2 months ago

Please, see release notes: v2.0.0.