Open
Description
Version(s)
Scala CLI 1.0.4
Scala 3.3.0
Describe the bug
When scala-cli run .
it craches:
"bloop.rifle.FailedToStartServerExitCodeException: Server failed with exit code 1
bloop.rifle.internal.Operations$.$anonfun$startServer$8(Operations.scala:263)
bloop.rifle.BloopRifleLogger.$anonfun$runnable$1(BloopRifleLogger.scala:14)
java.base@17.0.6/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
java.base@17.0.6/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
java.base@17.0.6/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
java.base@17.0.6/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
java.base@17.0.6/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
java.base@17.0.6/java.lang.Thread.run(Thread.java:833)
com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:775)
com.oracle.svm.core.windows.WindowsPlatformThreads.osThreadStartRoutine(WindowsPlatformThreads.java:178)"
To Reproduce
It was reproducible on the machine of a student of mine before we fixed it with this workaround:
scala-cli clean .
scala-cli run . --jvm 17
Prior to that it did not work with --jvm system
and now I'm unsure if it can be reproduced.
A lot of thing was happening on the machine to try to fix it, including cs uninstall --all
, nuking caches etc. But nothing helped until --jvm 17
It seems as if perhaps scala-cli picked up the system jvm but bloop couldn't, but I'm not sure.
Expected behaviour
It should not crash and bloop should use the same JDK as scala-cli (if that was the actual problem).