intellij icon indicating copy to clipboard operation
intellij copied to clipboard

java_library rule intellij showing so many warnings

Open cheriviralakiran opened this issue 6 months ago • 2 comments

Description of the bug:

Even though I am able to compile successfully using intellij and terminal as well, getting errors in java_library rule.

Image Image

Which category does this issue belong to?

Intellij

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Just add build.bazel with java_library rule.

Which Intellij IDE are you using? Please provide the specific version.

IntelliJ IDEA 2025.1.2

What programming languages and tools are you using? Please provide specific versions.

java

What Bazel plugin version are you using?

2025.06.10.0.1-api-version-251

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

cheriviralakiran avatar Jul 03 '25 08:07 cheriviralakiran

Try adding the import from rules_java.

load("@rules_java//java:java_library.bzl", "java_library")

joca-bt avatar Jul 05 '25 11:07 joca-bt

Can you provide a minimum reproducible example? The problem most likely lies in your project configuration.

odisseus avatar Jul 16 '25 15:07 odisseus