Open
Description
Using VSCode with the Scala(Metals) extension on the codebase of Apache Kafka (mixed Java/Scala codebase built with Gradle).
Metals doctor shows lots of compilation status errors due to errors like this (from the metals log):
024.03.22 16:25:04 WARN Unexpected javac output: warning: [path] bad path element "../kafka/.bloop/core-test/build/classes-empty-core-test": no such file or directory
warning: [path] bad path element ".../kafka/storage/api/src/test/resources": no such file or directory
error: warnings found and -Werror specified
1 error
2 warnings.
2024.03.22 16:25:04 WARN javac exited with exit code 1
2024.03.22 16:25:04 INFO time: compiled core-test in 29s
If the directories are created manually, then the status goes green.
As there are many such errors, it takes a long time to manually 'fix' the project
Note : I created an issue for Metals and it was reviewed as a bloop problem, so I am trying to get it fixed here
scalameta/metals#6249