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

Periodic `Expected to find project 'project_<whatever>' in build targets (only got )`

Open ckipp01 opened this issue 2 years ago • 1 comments

Version(s)

❯ scli version
Scala CLI version: 1.0.0-RC1

Describe the bug I don't have a clear reproduction of this as it happens somewhat infrequently, but enough times now for me to create an issue. It seems to happen when I merge in a pr for a project, switch back to main, and then pull the latest changes. When I try to run any scala-cli command again it seems to fail. I then clean everything and it will continue to fail even though there is no .scala-build left.

The only thing that seems to fix it is if I exit the bloop server, and then re-start it. So it seems like Bloop is holding on to some sort of state that it shouldn't. This is what it looks like when this happens:

https://user-images.githubusercontent.com/13974112/233855478-fd1ae0e6-f9e7-48d6-8d98-575613e789d0.mov

Expected behaviour

I'd expect for this to never happen. If there is no local .scala-build, then there shouldn't be any way for Bloop to still be holding onto some old state for the project when I try to compile it.

ckipp01 avatar Apr 23 '23 17:04 ckipp01

I just ran into this and running scala-cli bloop exit --power fixed it

nachocab avatar Feb 04 '24 12:02 nachocab