Skip to content
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

multiple errors like "bad path element "... ": no such file or directory when building Apache Kafka #6249

Open
edoardocomar opened this issue Mar 22, 2024 · 1 comment
Labels
bloop Bloop related tickets bug Something that is making a piece of functionality unusable upstream-fix-needed Waiting on a fix upstream

Comments

@edoardocomar
Copy link

edoardocomar commented Mar 22, 2024

Describe the bug

Using VSCode with Scala(Metals) extension on the code of Apache Kafka (mixed Java/Scala 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

Expected behavior

Can the missing directories be auto-created if they do not exist ?

Operating system

macOS

Editor/Extension

VS Code

Version of Metals

Metals version: 1.2.2

Extra context or search terms

VSCode metals extesnion v 1.29.0

No response

@tgodzik
Copy link
Contributor

tgodzik commented Mar 25, 2024

Thanks for reporting! This looks like something to fix inside Bloop. We should probably not invoke the Java compiler with directories that do not exists

@tgodzik tgodzik added upstream-fix-needed Waiting on a fix upstream bloop Bloop related tickets bug Something that is making a piece of functionality unusable labels Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bloop Bloop related tickets bug Something that is making a piece of functionality unusable upstream-fix-needed Waiting on a fix upstream
Projects
None yet
Development

No branches or pull requests

2 participants