hey - i can't find a more appropriate channel than...
# coroutines
p
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).
image.png
i'm on JDK 11.
u
Probably any channel would have been better than #coroutines 🙂 Try #intellij or #android-studio
p
fwiw, i was able to solve it by adding configuration to the test tasks in the
build.gradle.kts
file.