Ahh, now that you sent that link it jogged my memory. A while ago I think I did see that error and installed the error prone compiler plugin mentioned. It worked after that I believe, but I am on IntillJ 2019.2.4 on Ubuntu, and it was a while ago so maybe something changed. If there is anything I can check to help you out, let me know.
On Mon, Feb 3, 2020 at 12:22 PM Andy Grove <andygrov...@gmail.com> wrote: > So it turns out there are specific instructions [1] for using errorprone > with IntelliJ. Unfortunately, this doesn't work due to a bug in IntelliJ > that was fixed a few days ago but not released yet [2]. > > [1] https://errorprone.info/docs/installation > [2] > > https://intellij-support.jetbrains.com/hc/en-us/community/posts/360007052380-error-prone-compile-plugin-cant-download-jar > > > > On Mon, Feb 3, 2020 at 1:10 PM Andy Grove <andygrov...@gmail.com> wrote: > > > Hi Bryan, > > > > Yes, I tried opening as a Maven project and got the same error. I'm using > > OpenJDK 1.8.0_232 on both Ubuntu 19.04 and macOS 10.14.6 and get the same > > error on both. I'm using IntelliJ Ultimate 2019.3.2. Building from the > > command line with Maven works fine. > > > > Very odd. I'll guess I'll do a little more research on errorprone. > > > > Thanks, > > > > Andy. > > > > > > On Mon, Feb 3, 2020 at 12:50 PM Bryan Cutler <cutl...@gmail.com> wrote: > > > >> Hi Andy, > >> What is your JDK version? I haven't seen that exact error, did you open > >> Arrow as a Maven project in Intellij? > >> > >> On Mon, Feb 3, 2020 at 7:47 AM Andy Grove <andygrov...@gmail.com> > wrote: > >> > >> > I'm working on the Java codebase and cannot run code inside IntelliJ > >> and it > >> > looks like some kind of compatibility issue between errorprone and the > >> JDK > >> > that IntelliJ is using. I'm hoping other Java committers have found a > >> > solution already to this? > >> > > >> > Error:java: java.lang.RuntimeException: java.lang.NoSuchMethodError: > >> > > >> > > >> > com.sun.tools.javac.util.JavacMessages.add(Lcom/sun/tools/javac/util/JavacMessages$ResourceBundleHelper;)V > >> > Error:java: Caused by: java.lang.NoSuchMethodError: > >> > > >> > > >> > com.sun.tools.javac.util.JavacMessages.add(Lcom/sun/tools/javac/util/JavacMessages$ResourceBundleHelper;)V > >> > Error:java: at > >> > > >> > > >> > com.google.errorprone.BaseErrorProneJavaCompiler.setupMessageBundle(BaseErrorProneJavaCompiler.java:202) > >> > Error:java: at > >> > > >> > > >> > com.google.errorprone.ErrorProneJavacPlugin.init(ErrorProneJavacPlugin.java:40) > >> > > >> > > >