Skip to content

Missing IDE info #174

@ha1dfo

Description

@ha1dfo

I'm trying to set up bazel + java + vscode.

I have found this extension but having trouble setting it up.
Environment: build uses bazelmod and rules_jvm_external to fetch remote maven artifacts (they get put under .bazel/bin/**/*.jar.

I have created an empty WORKSPACE file (i know, it's fairly unnecessary if you use bazelmod, but i gave it a try).
It looks like my projects now do see each-other, but none of my external dependencies (maven) resolve.

When looking into "Problems" tab on vscode, I'm seeing these two things repeated over and over again:

  • The project cannot be built until build path errors are resolved (I guess this is a result)
  • Unable to compute classpath for target '//lib/java/<project>:<targetname>' because of missing IDE info! Please check the Bazel build for problems building the target. (Cause?)

On top of all this, my generated code (gRPC) doesn't seem to be picked up, but that might hopefully egt resolved automatically once I manage to address the above two issues.

I wonder if anyone would be able to help me figure out either/both of those issues? How to pick up external dependencies, and how to make the other error go away?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions