scala-cli icon indicating copy to clipboard operation
scala-cli copied to clipboard

Scala-cli run command incorrectly reports Fatal invariant violated.

Open dasm0012 opened this issue 1 year ago • 4 comments

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 image

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

dasm0012 avatar Mar 30 '24 15:03 dasm0012