-
Notifications
You must be signed in to change notification settings - Fork 39
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
Resolve build warnings #122
Conversation
After a lot of debugging I found the culprit, and it's related to #76 (comment): even though diff --git a/pom.xml b/pom.xml
index 7a0636fc..70bf9dbd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -732,6 +732,11 @@
<version>3.10.1</version>
<configuration>
<annotationProcessorPaths>
+ <path>
+ <groupId>${groupId.error-prone}</groupId>
+ <artifactId>error_prone_check_api</artifactId>
+ <version>${version.error-prone}</version>
+ </path>
<path>
<groupId>com.google.auto.service</groupId>
<artifactId>auto-service</artifactId> But that feels wrong. (I also tried moving up the All this is quite ugly, and if we go this route it warrants a comment. But TBH: the more I think about it, the more it feels like we should generate two sets of artifacts: those compatible with vanilla Error Prone, and those that use the fork. Details TBD. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could decide to not allow SUGGESTION
currently, as it is not obvious enough.
W.r.t. the second point, thanks for explaining. Looks like a pretty difficult issue. Perhaps we can discuss solutions together.
Code LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extensive analysis @Stephan202. Must admit that I don't have the time/brain capacity to dive deep into it to get a full understanding of it. Would be happy to join any offline discussions around this to get a better understanding for when we wish to improve this setup.
Code changes LGTM.
We decided to create a new flag, |
Just opened PicnicSupermarket/error-prone#33. |
Suggested commit message:
Two things:
SeverityLevel.SUGGESTION
doesn't really work in the current setup, unless we rely on a CI build applying thepatch
profile. But since such an extra patch build takes extra time, I'm not sure that's a desirable end state.-Perror-prone-fork -Pself-check -Ppatch -Derror-prone.patch-checks=''
doesn't work; I had to explicitly specifyLexicographicalAnnotationListing
. This indicates that the changes of Support running all available patch checks google/error-prone#947 no longer fully work. That requires separate investigation.