I have set up a little compose multiplatform proje...
# compose-desktop
m
I have set up a little compose multiplatform project via the IntelliJ wizard as described here: https://github.com/JetBrains/compose-multiplatform-desktop-template/#readme If I run the gradle “run” task the demo program window shows up as expected. So far so good but what I actually wanted to do is to execute some test code. I added some code to the desktop test folder and tried to execute this test. The test starts to execute but then fails with: ... Caused by: org.jetbrains.skiko.LibraryLoadException: Cannot find libskiko-macos-x64.dylib.sha256, proper native dependency missing. at app//org.jetbrains.skiko.Library.findAndLoad(Library.kt:105) at app//org.jetbrains.skiko.Library.load(Library.kt:59) at app//org.jetbrains.skia.impl.Library$Companion.staticLoad(Library.jvm.kt:12) at app//org.jetbrains.skia.Image.<clinit>(Image.kt:142) ... 45 more Can anybody tell me why this library is found when running the main program but is not found when running a test? Why does the wizard not set up the project so that such things just work out of the box? The test in question is just a pure functional test and not a GUI test. It just tries to create an ImageBitmap and do some bit fiddling with it. Environment details in the thread.
Environment: IntelliJ IDEA 2023.2 EAP (Community Edition) Build #IC-232.6095.10, built on May 17, 2023 Runtime version: 17.0.7+7-b953.1 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 12.6.6 GC: G1 Young Generation, G1 Old Generation Memory: 2048M Cores: 12 Metal Rendering is ON Registry: debugger.new.tool.window.layout=true ide.experimental.ui=true Non-Bundled Plugins: com.intellij.javafx (1.0.4) com.gluonhq.plugin.intellij (2.8.6) org.asciidoctor.intellij.asciidoc (0.38.13) com.squareup.sqldelight (1.5.5) androidx.compose.plugins.idea (232.6095.10) Kotlin: 232-1.8.21-release-380-IJ6095.10
o
@Sebastian Sellmair [JB] and tests 😢
s
cc @stanislav.erokhin