Open mlen opened 4 years ago
Code completion doesn't work correctly unless I patch bazelClasspath method to resolve paths relatively to bazelOutputBase
bazelClasspath
bazelOutputBase
My WORKSPACE file looks like this:
WORKSPACE
load("@rules_jvm_external//:defs.bzl", "maven_install") maven_install( artifacts = ["com.google.guava:guava:29.0-jre"], repositories = ["https://repo1.maven.org/maven2"], )
My BUILD file looks like this:
BUILD
java_binary( name = "hello", srcs = ["Hello.java"], main_class = "hello.Hello", deps = ["@maven//:com_google_guava_guava"], )
Is there any reason why it should resolve based on the workspace root instead of the output base dir?
Hmmm...I use this with bazel myself, but I don't doubt that I might have something wrong. There's often multiple ways to get to the same path with Bazel. PR is welcome!
Code completion doesn't work correctly unless I patch
bazelClasspath
method to resolve paths relatively tobazelOutputBase
My
WORKSPACE
file looks like this:My
BUILD
file looks like this:Is there any reason why it should resolve based on the workspace root instead of the output base dir?