-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
[6.3.0] nullaway plugin stops compiling #19054
Comments
I tested this by adding Could you provide a reproducer? It's quite possible that something else broke, but it's unlikely that |
Updated the description, wasn't looking at correct place for javacopts, they aren't on cmdline args but rather in a .params file. |
Likely a regression/incompatibility between error-prone going 2.11.0 -> 2.20.0 What is weird is that it should be 2.20 https://github.com/bazelbuild/bazel/tree/release-6.3.0/third_party/error_prone
|
Added repro case to description. Wasn't able to validate which error-prone version is bundled in 6.3.0 release. Dist file seems to have 2.20.0 (both jar name and |
Found where it comes from # /DEFAULT.WORKSPACE.SUFFIX:364:6
http_archive(
name = "remote_java_tools",
generator_name = "remote_java_tools",
generator_function = "maybe",
urls = ["https://mirror.bazel.build/bazel_java_tools/releases/java/v12.5/java_tools-v12.5.zip", "https://github.com/bazelbuild/java_tools/releases/download/java_v12.5/java_tools-v12.5.zip"],
sha256 = "942b3d88ebd785a5face38049077a1f8dab5a3500f5ebd0c0df090244acc4e16",
) inside that archive
|
My guess is latest java_tools 12.5 was published from older 6.3.0 (-rc) version when error-prone was only at 2.19.1 and wasn't updated on error-prone update to 2.20.0 |
@bazel-io fork 6.3.1 |
I think it's the opposite, java_tools 12.5 was built from sources of Bazel@HEAD, which still has errorprone 2.19.1: Lines 422 to 426 in 6eb7dbb
|
@bazel-io fork 6.4.0 |
Closing this one since it has been addressed here: #19066 |
Actually, leaving it open until the corresponding java_tools/rules_java update is also complete. Sorry! |
Done - #19085 @dmivankov Thank you for reporting this issue. |
@dmivankov Can you please confirm if this issue has been fixed in 6.3.1rc1? |
@meteorcloudy run it on some of the targets and looks like it got resolved 🎉 |
Description of the bug:
Nullaway error-prone plugin doesn't work with 6.3.0 but did work with 6.1.2
What goes wrong is either
2.19.1 comes from remote_java_tools-v12.5
and the error message it not wrong
bazel build --verbose_failures ... ; cat bazel-out/....jar-0.params
shows-XepOpt:NullAway:AnnotatedPackages
presentDifference in .params from 6.1.2 to 6.3.0 seems to be just
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
WORKSPACE:
BUILD
A.java
Command
Which operating system are you running Bazel on?
NixOS
What is the output of
bazel info release
?release 6.3.0- (@non-git)
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?No response
Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
Didn't find any obviously related change between 6.1.2 and 6.3.0 yet
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
Would be good to fix in 6.3.1 #19045
The text was updated successfully, but these errors were encountered: