-
Notifications
You must be signed in to change notification settings - Fork 299
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
Patching not working since Errorprone 2.26.0 #1080
Comments
Hey @protocol7! Looking at the error, this may be one of the rare cases where the "DO NOT report an issue to Error Prone for this crash!" statement may be ignored 😅. Luckily I already filed a pull request that proposes a fix: google/error-prone#4699. |
That's great timing :) |
Thank you for the report @protocol7! I've hacked up a NullAway test here, based heavily on the test @Stephan202 wrote on google/error-prone#4699: master...msridhar:NullAway:test-auto-patching I confirmed this test passes under EP 2.25.0 but fails under EP 2.26.0. Unfortunately I don't see an easy way to work around this issue on the NullAway side. For now, I've added a note to our auto suppression docs noting the Error Prone version incompatibility. FYI @cushon |
I initially mis-read that as 2.36.0 and was confused about what the regression was (: 2.26.0 contained google/error-prone@9da2d55, which is consistent with google/error-prone#4699 helping. |
Since Errorprone 2.26.0, and perhaps this change google/error-prone#4028, patching does not seem to work with NullAway. Instead we get the following error:
This is using NullAway 0.12.1 and
javac
with-Xep:NullAway:WARN -XepOpt:NullAway:AnnotatedPackages=com.helloworld -XepOpt:NullAway:SuggestSuppressions=true -XepPatchChecks:NullAway -XepPatchLocation:/tmp/tmp.patch
. I've tried various combinations of these settings, e.g. including and excluding-Xep:NullAway:WARN
with the same results.This works as expected with Errorprone 2.25.0, and does not work with Errorprone from 2.26.0 up until at least 2.35.1.
Not sure if this is best reported here or with Errorprone, but following the advise in the error message :)
The text was updated successfully, but these errors were encountered: