-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metals fails to compile project with a Bloop error report #6999
Comments
Thanks! Looks like this error was caused by the previous one Looks like two issues:
|
Ah it's just the same thing:
There's no error in the logs, it shows like this:
And nothing else is happening. |
Anything special how serviceprotocol is used? This looks like the module requires itself to be built? Or is it a same named dependency? I think we need to add more data to the exceptions there. |
Or just filter out anything that doesn't exist on the classpath? 🤔 |
2 things I can add:
|
Damn, I found the cause! ThisBuild / usePipelining := true I was looking at my build.sbt in case there was anything out of the ordinary and noticed we are using build pipelining. Tried to change it to false and the issue disappears. |
Och, that's a good catch! I wonder what changes if it's set to true. I can investigate more now. |
Describe the bug
I am trying to load and compile a work project in VS Code with Metals (can't share the sources unfortunately).
It fails on one of the first modules with no errors reported.
The Metals output just says something like
2024.12.02 19:35:27 INFO time: compiled serviceProtocol in 0.86s
but it doesn't continue to the next module.There's this warning:
When running Doctor the module appears like this:
There is nothing in the Problems tab. There is a Bloop error report though:
Here's the full stack trace in the report:
Note that I tried it on 2 different machines (both Mac) for the same result.
Expected behavior
The project compiles successfully.
Operating system
macOS
Editor/Extension
VS Code
Version of Metals
v1.4.1
Extra context or search terms
Metals Java: 21.0.5 from Eclipse Adoptium
Metals Server version: 1.4.1
Project's Java: 21.0.5
Build definition is coming from sbt
Build server currently being used is Bloop v2.0.5
The text was updated successfully, but these errors were encountered: