Open omer-azmon opened 11 months ago
Based on the stack trace the check is analyzing a method with a type parameter, but when it looks at the source code the type parameter isn't there.
The config shows this build is using lombok, which generates synthetic AST nodes that don't have source positions and don't match up to the original source code, which is consistent with the crash.
This is related to other crashes caused by lombok, e.g. https://github.com/google/error-prone/issues?q=is%3Aopen+is%3Aissue+label%3Alombok
@omer-azmon Have you tried activating addLombokGeneratedAnnotation
? It should hopefully solve this particular issue.
It worked!
Thanks,
Omer Azmon | 5253 | Principal Engineer — MSaaS Paved Roads
Office: 650 944 3643 | Mobile: 818 370 8453
From: NicklasWallgren @.> Sent: Monday, July 31, 2023 05:50 To: google/error-prone @.> Cc: Azmon, Omer @.>; Mention @.> Subject: Re: [google/error-prone] An unhandled exception was thrown by the Error Prone static analysis plugin. (Issue #4017)
This email is from an external sender.
@omer-azmonhttps://github.com/omer-azmon Have you tried activating addLombokGeneratedAnnotation? It should hopefully solve this particular issue.
— Reply to this email directly, view it on GitHubhttps://github.com/google/error-prone/issues/4017#issuecomment-1658313321, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZZGRD7FIVIQIQRCBWRWFBTXS6SYNANCNFSM6AAAAAA2WE2HGQ. You are receiving this because you were mentioned.Message ID: @.***>
Using:
Pom Snippet: