在尝试 Intellij Idea 13 EAP(我知道它不稳定)时,由于以下警告,我无法编译/运行工作项目:
java: lombok.javac.apt.Processor could not be initialized. Lombok will not run during this compilation: java.lang.ClassCastException: com.sun.tools.javac.processing.JavacProcessingEnvironment cannot be cast to com.sun.tools.javac.processing.JavacProcessingEnvironment
at lombok.javac.apt.Processor.init(Processor.java:84)
at lombok.core.AnnotationProcessor$JavacDescriptor.want(AnnotationProcessor.java:89)
at lombok.core.AnnotationProcessor.init(AnnotationProcessor.java:143)
它与 Intellij Idea 12 配合得很好,但我需要在 13 上运行,因为另一个问题仅在 13 中修复(IDEA-104616)
出现此错误:
com.sun.tools.javac.processing.JavacProcessingEnvironment 无法转换为 com.sun.tools.javac.processing.JavacProcessingEnvironment
更新:
创建 JetBrains 问题:IDEA-114130