Open scarf005 opened 1 month ago
at first i thought it was due to corrupt cache, and tried clean but it fails with mysterious errors (usage does not state it requires input files)
It does require input files. We can tweak the help message, I suppose.
scala-cli suddenly fails to run simple (or any) scripts.
Any hints on what could have caused it? There's not much context to go on. I can't seem to reproduce this, even on a linux machine.
Also, does passing the --server=false
option help?
Any hints on what could have caused it? There's not much context to go on.
It happened after I opened the project on vscode+metals. I'd love to provide more context but unsure which file to provide; maybe $HOME/.cache/scala-cli
? erasing dotfiles like .bsp
and .bloop
didn't help
Also, does passing the --server=false option help?
will try after I get home.
Running with -v -v -v
might also provide us with some hint in the logs.
If --server=false
helps, it'd mean Bloop (the build server) is the culprit... in which case it may also make sense to restart it with:
scala-cli --power bloop exit
--server=false
flag.scala-cli --power bloop exit
stopped the issue from happening again.thanks for the help.
here's the output of scala-cli run -v -v -v hello.scala
for reference: output.log
Sounds like a race condition in bloop. I see stuff like that pretty often given my workflow is based on using both metals and scala-cli simultaneously (e.g., I finish writing code in vscode, run scala-cli compile in terminal).
Version(s) Scala CLI version: 1.5.0 Scala version (default): 3.5.0 OS: fedora 40 (kinoite)
Describe the bug
scala-cli suddenly fails to run simple (or any) scripts.
To Reproduce
Expected behaviour A clear and concise description of what you expected to happen.
scala-cli works.
Additional Info
at first i thought it was due to corrupt cache, and tried
clean
but it fails with mysterious errors (usage does not state it requires input files)i searched for similar issues like #2117 and #2241, but they seems to be unrelated in terms of used scripts.