hey - i can't find a more appropriate channel than this, but i'm struggling with being able to run a lincheck test from within IDEA. I'm running into
Copy code
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: It seems that you use Java 9+ and the code uses Unsafe or similar constructions that are not accessible from unnamed modules.
Please add the following lines to your test running configuration:
--add-opens java.base/jdk.internal.misc=ALL-UNNAMED
--add-exports java.base/jdk.internal.util=ALL-UNNAMED
at org.jetbrains.kotlinx.lincheck.strategy.managed.UnsafeHolder.getUnsafe(ManagedStrategyTransformer.kt:1501)
at org.jetbrains.kotlinx.lincheck.tran$f*rmed.java.util.concurrent.atomic.AtomicInteger.<clinit>(AtomicInteger.java:61)
I have added these settings as VM options (screenshot in thread).
Petter Måhlén
04/04/2023, 8:09 AM
image.png
Petter Måhlén
04/04/2023, 8:10 AM
i'm on JDK 11.
u
uli
04/04/2023, 11:47 AM
Probably any channel would have been better than #coroutines 🙂
Try #intellij or #android-studio
p
Petter Måhlén
04/04/2023, 1:12 PM
fwiw, i was able to solve it by adding configuration to the test tasks in the