cushon / issues-import

0 stars 0 forks source link

Incompatible with Dagger #175

Closed cushon closed 9 years ago

cushon commented 9 years ago

Original issue created by steven.m.reed on 2013-08-13 at 07:36 PM


What steps will reproduce the problem?

  1. Add com.squareup:dagger-compiler:1.0.1 to maven project as per Dagger documentation. I'm not sure at this point if you need to actually have dagger annotations in your source.
  2. mvn compile

What is the expected output? What do you see instead?

  1. I expect the compiler to run without error. Instead, I see the stack trace included below.

What version of the product are you using? On what operating system?

Using 2.3-SNAPSHOT of plexus-compiler-javac and plexus-compiler-javac-errorprone, and 3.1 of maven-compiler-plugin.

Please provide any additional information below.

An exception has occurred in the compiler (1.7.0_25). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you. java.lang.IllegalStateException: No error-prone scanner registered in context. Is annotation processing enabled? Please report bug to error-prone: http://code.google.com/p/error-prone/issues/entry at com.google.errorprone.ErrorProneAnalyzer.<init>(ErrorProneAnalyzer.java:55) at com.google.errorprone.ErrorReportingJavaCompiler.<init>(ErrorReportingJavaCompiler.java:37) at com.google.errorprone.ErrorReportingJavaCompiler$1.make(ErrorReportingJavaCompiler.java:53) at com.google.errorprone.ErrorReportingJavaCompiler$1.make(ErrorReportingJavaCompiler.java:50) at com.sun.tools.javac.util.Context.get(Context.java:147) at com.sun.tools.javac.main.JavaCompiler.instance(JavaCompiler.java:86) at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.nextContext(JavacProcessingEnvironment.java:1116) at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.<init>(JavacProcessingEnvironment.java:878) at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.next(JavacProcessingEnvironment.java:913) at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1174) at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1108) at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:824) at com.sun.tools.javac.main.Main.compile(Main.java:439) at com.sun.tools.javac.main.Main.compile(Main.java:353) at com.google.errorprone.ErrorProneCompiler.compile(ErrorProneCompiler.java:151) at com.sun.tools.javac.main.Main.compile(Main.java:342) at com.sun.tools.javac.main.Main.compile(Main.java:333) at org.codehaus.plexus.compiler.javac.JavacCompilerWithErrorProne.compileInProcessWithProperClassloader(JavacCompilerWithErrorProne.java:74) at org.codehaus.plexus.compiler.javac.JavacCompiler.compileInProcess(JavacCompiler.java:537) at org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile(JavacCompiler.java:174) at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:785) at org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:129) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:167) at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:163) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724)

cushon commented 9 years ago

Original comment posted by alexeagle@google.com on 2013-11-22 at 12:23 AM


(No comment entered for this change.)


Status: Duplicate Merged Into: #188

cushon commented 9 years ago

Original comment posted by jkuhnert on 2013-11-22 at 12:34 AM


https://github.com/square/dagger

Given the high number of active commits on project I'd recommend internally asking https://github.com/cgruber who is a google engineer and also contributor to dagger. (ie your own developers are also going to run into problems potentially..) He might know of the "most correct way" to have everyone working together happily.