-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
area:runnerIssues tied to the scala runner command.Issues tied to the scala runner command.compat:windowsitype:bugstat:cannot reproduce
Description
Scala-cli crashes when trying to compile file with 3.8.0-RC2.
Compiler version
3.8.0-RC2
Minimized code
//> using scala 3.8.0-RC2Output
Compiling project (Scala 3.8.0-RC2, JVM (21))
Error compiling project (Scala 3.8.0-RC2, JVM (21))
Error: sbt.internal.inc.InvalidComponent: Expected single file for component 'org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0', found: C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\compiler-interface-1.10.7.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\fansi_3-0.5.1.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\jline-native-3.29.0.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\jline-reader-3.29.0.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\jline-terminal-3.29.0.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\jline-terminal-jni-3.29.0.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\pprint_3-0.9.3.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\scala-asm-9.9.0-scala-1.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\scala-library-3.8.0-RC2.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\scala3-compiler_3-3.8.0-RC2.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\scala3-interfaces-3.8.0-RC2.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\scala3-library_3-3.8.0-RC2.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\scala3-repl_3-3.8.0-RC2.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\scala3-sbt-bridge-3.8.0-RC2.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\sourcecode_3-0.4.4.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\tasty-core_3-3.8.0-RC2.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\util-interface-1.10.7.jar
at sbt.internal.inc.BloopComponentManager.invalid(BloopComponentManager.scala:91)
at sbt.internal.inc.BloopComponentManager.file(BloopComponentManager.scala:74)
at sbt.internal.inc.BloopComponentCompiler.compiledBridgeJar(BloopComponentCompiler.scala:256)
at sbt.internal.inc.BloopComponentCompiler$BloopCompilerBridgeProvider.compiledBridge(BloopComponentCompiler.scala:133)
at sbt.internal.inc.BloopComponentCompiler$BloopCompilerBridgeProvider.fetchCompiledBridge(BloopComponentCompiler.scala:139)
at sbt.internal.inc.AnalyzingCompiler.getDualLoader(AnalyzingCompiler.scala:354)
at sbt.internal.inc.AnalyzingCompiler.getCompilerLoader(AnalyzingCompiler.scala:343)
at sbt.internal.inc.AnalyzingCompiler.compile(AnalyzingCompiler.scala:87)
at sbt.internal.inc.bloop.internal.BloopHighLevelCompiler.compileSources$1(BloopHighLevelCompiler.scala:148)
at sbt.internal.inc.bloop.internal.BloopHighLevelCompiler.$anonfun$compile$9(BloopHighLevelCompiler.scala:181)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
at sbt.internal.inc.bloop.internal.BloopHighLevelCompiler.$anonfun$compile$1(BloopHighLevelCompiler.scala:73)
at bloop.tracing.NoopTracer$.trace(BraveTracer.scala:53)
at sbt.internal.inc.bloop.internal.BloopHighLevelCompiler.timed$1(BloopHighLevelCompiler.scala:72)
at sbt.internal.inc.bloop.internal.BloopHighLevelCompiler.$anonfun$compile$8(BloopHighLevelCompiler.scala:181)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
at monix.eval.internal.TaskRunLoop$.startFull(TaskRunLoop.scala:81)
at monix.eval.internal.TaskRestartCallback.syncOnSuccess(TaskRestartCallback.scala:101)
at monix.eval.internal.TaskRestartCallback.onSuccess(TaskRestartCallback.scala:74)
at monix.eval.internal.TaskExecuteOn$AsyncRegister$$anon$1.run(TaskExecuteOn.scala:71)
at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1423)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
Error: Unexpected error when compiling scala_36ed8d1a99-a4355ceaa5: sbt.internal.inc.InvalidComponent: Expected single file for component 'org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0', found: C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\compiler-interface-1.10.7.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\fansi_3-0.5.1.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\jline-native-3.29.0.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\jline-reader-3.29.0.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\jline-terminal-3.29.0.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\jline-terminal-jni-3.29.0.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\pprint_3-0.9.3.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\scala-asm-9.9.0-scala-1.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\scala-library-3.8.0-RC2.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\scala3-compiler_3-3.8.0-RC2.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\scala3-interfaces-3.8.0-RC2.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\scala3-library_3-3.8.0-RC2.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\scala3-repl_3-3.8.0-RC2.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\scala3-sbt-bridge-3.8.0-RC2.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\sourcecode_3-0.4.4.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\tasty-core_3-3.8.0-RC2.jar, C:\Users\Ondra\AppData\Local\bloop\cache\components\org.scala-lang-scala3-sbt-bridge-3.8.0-RC2-bin_3.8.0-RC2__65.0\util-interface-1.10.7.jar
at sbt.internal.inc.BloopComponentManager.invalid(BloopComponentManager.scala:91)
at sbt.internal.inc.BloopComponentManager.file(BloopComponentManager.scala:74)
at sbt.internal.inc.BloopComponentCompiler.compiledBridgeJar(BloopComponentCompiler.scala:256)
at sbt.internal.inc.BloopComponentCompiler$BloopCompilerBridgeProvider.compiledBridge(BloopComponentCompiler.scala:133)
at sbt.internal.inc.BloopComponentCompiler$BloopCompilerBridgeProvider.fetchCompiledBridge(BloopComponentCompiler.scala:139)
at sbt.internal.inc.AnalyzingCompiler.getDualLoader(AnalyzingCompiler.scala:354)
at sbt.internal.inc.AnalyzingCompiler.getCompilerLoader(AnalyzingCompiler.scala:343)
at sbt.internal.inc.AnalyzingCompiler.compile(AnalyzingCompiler.scala:87)
at sbt.internal.inc.bloop.internal.BloopHighLevelCompiler.compileSources$1(BloopHighLevelCompiler.scala:148)
at sbt.internal.inc.bloop.internal.BloopHighLevelCompiler.$anonfun$compile$9(BloopHighLevelCompiler.scala:181)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
at sbt.internal.inc.bloop.internal.BloopHighLevelCompiler.$anonfun$compile$1(BloopHighLevelCompiler.scala:73)
at bloop.tracing.NoopTracer$.trace(BraveTracer.scala:53)
at sbt.internal.inc.bloop.internal.BloopHighLevelCompiler.timed$1(BloopHighLevelCompiler.scala:72)
at sbt.internal.inc.bloop.internal.BloopHighLevelCompiler.$anonfun$compile$8(BloopHighLevelCompiler.scala:181)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
at monix.eval.internal.TaskRunLoop$.startFull(TaskRunLoop.scala:81)
at monix.eval.internal.TaskRestartCallback.syncOnSuccess(TaskRestartCallback.scala:101)
at monix.eval.internal.TaskRestartCallback.onSuccess(TaskRestartCallback.scala:74)
at monix.eval.internal.TaskExecuteOn$AsyncRegister$$anon$1.run(TaskExecuteOn.scala:71)
at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1423)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
Compilation failedExpectation
The file should produce [error] No main class found, as it does with 3.8.0-RC1
Metadata
Metadata
Assignees
Labels
area:runnerIssues tied to the scala runner command.Issues tied to the scala runner command.compat:windowsitype:bugstat:cannot reproduce