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
Error Prone is not recoginizing the symbols and imports #3681
Comments
I see that Easypost is a Maven project; the approach taken here will be hard to get working. Instead follow the Maven installation instructions. (I don't know whether these instructions are accurate for the old 2.10 release; it might pay off to find an old gh-pages revision from around the time of that release.) |
Thanks for replying. Because our Java client library supports Java 8 - 19, I was following the given instruction from the error prone GitHub installation guide for Java 9 or newer so we can run the shell script only once in the CI build for Java 9. I have followed almost everything from the installation requirement, I am unsure if I miss any tiny piece on my end or if there is an issue with error prone 2.10.0 version. |
At a minimum, your classpath is empty, but your POM has many dependencies declared, so it's almost guaranteed to not compile. Your processorpath is also missing Lombok that your project is using. I'd rather configure ErrorProne in the POM, and use a Maven profile to actually configure it only for Java 9+ Wrt the |
I started writing a comment (and then got distracted), but @tbroyer already gave an excellent answer. Flushing the text I had so far:
|
@tbroyer @Stephan202 Thank you all for the inputs! I have removed the shell script and edited the configuration in POM as you guys suggested. I am using version Build with Java 8: https://github.com/EasyPost/easypost-java/actions/runs/3840568957/jobs/6539781354 |
I believe the See https://errorprone.info/docs/installation#jdk-8, and more specifically https://github.com/google/error-prone/blob/f8e33bc460be82ab22256a7ef8b979d7a2cacaba/docs/installation.md#maven Another approach is to always build with the same JDK (e.g. JDK 11 or JDK 17, with |
Closing this issue, we have decided to modify our CI build to use JDK 19 to build Java 8 - 19. Thanks all for the help! |
Hi all. I am trying to add error prone to the EasyPost Java repo. Currently, I am using the below shell script to run the error prone check, however, the error prone would throw hundreds of errors saying cannot find the path and cannot recognize the import. Has anyone encountered this in the past? Any advice would be much appreciated!
The text was updated successfully, but these errors were encountered: