Open scarf005 opened 2 months 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).
I experience this every day since a few weeks on ubuntu. Always happens when metals is running on the same project. I use metals+vim. To reproduce:
This exception is something that should not happen when invoking the compiler normally and it is. I raised an issue https://github.com/scala/scala3/issues/21947 since we don't really have enough information.
Also, I realized this might be an issue related to https://github.com/scala/bug/issues/13045
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.