scala-cli
scala-cli copied to clipboard
Scala-cli run command incorrectly reports Fatal invariant violated.
Version(s) Scala CLI version: 1.2.1 Scala version (default): 3.4.1 Scala 3.4.1, JVM (22) WSL/Ubuntu
Describe the bug
When repeatedly executing scala-cli run command on a file that hasn't changed, scala-cli reports "Error: Fatal invariant violated: reportEndCompilation was called before processEndCompilation" - but still executes the scala file
To Reproduce Create simple scala file (e.g. Hello World in main function) Execute: scala-cli run ./hello.scala => works as expected Execute again (no changes in hello.scala file): scala-cli run ./hello.scala => Fatal invariant is reported
Expected behaviour No fatal invariant is reported