Skip to content

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

Open
@edoardocomar

Description

@edoardocomar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA defect or misbehaviour.gradlejavaPull requests that update Java code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions