scalacenter / bloop

Bloop is a build server and CLI tool to compile, test and run Scala fast from any editor or build tool.
https://scalacenter.github.io/bloop/
Apache License 2.0
909 stars 201 forks source link

move - FileAlreadyExistsException #2506

Closed mbovel closed 3 days ago

mbovel commented 2 weeks ago

I had some problems with Metals when working on Dotty yesterday. Looking at the logs, I saw a FileAlreadyExistsException exception. I am not sure if this is the root cause or not.

reports.zip

image
mbovel commented 2 weeks ago

Might be related to #2008?

tgodzik commented 2 weeks ago

This shouldn't be a big issue unless it repeats itself even after reloading. What kinds of problems were you having? I did some improvements in Bloop 2.0.5, which will be released soon in new metals.

mbovel commented 3 days ago

What kinds of problems were you having?

I think the general problem is Bloop trying to recompile many things, making Metals slow and unresponsive. I seem to have this problem often: scala3-compiler getting recompiled over and over when there are issues. I don't remember the details in this specific instance, but I will fill issues when I observe it again!

Should I close this issue if you fixed it in 2.0.5?

tgodzik commented 3 days ago

I think the general problem is Bloop trying to recompile many things, making Metals slow and unresponsive.

Yeah, not sure how to solve this. We should avoid excessive recompilation, might be worth a separate issue in Metals.

The file not found exception should be fixed, let me know if you see it again!