ceylon/ceylon-ide-eclipse — Issue #155: Plugin does not work with Lombok
Author: piefel
Created: 2012-01-27 08:44:15+00:00
State: open

This may very well be a general issue with the compiler instead of the Eclipse plugin. When used together with [Lombok](http://projectlombok.org/), which will be appended to the Eclipse command line with `-javaagent:lombok.jar -Xbootclasspath/a:lombok.jar` (add your path there), the following stack trace will be shown when compiling:
```
java.lang.NullPointerException
at com.redhat.ceylon.compiler.util.Util.getArchiveName(Util.java:199)
at com.redhat.ceylon.compiler.util.Util.getModuleArchiveName(Util.java:191)
at com.redhat.ceylon.compiler.tools.JarOutputRepositoryManager$ProgressiveJar.(JarOutputRepositoryManager.java:111)
at com.redhat.ceylon.compiler.tools.JarOutputRepositoryManager.getProgressiveJar(JarOutputRepositoryManager.java:69)
at com.redhat.ceylon.compiler.tools.JarOutputRepositoryManager.getFileObject(JarOutputRepositoryManager.java:62)
at com.redhat.ceylon.compiler.tools.CeyloncFileManager.getFileForOutput(CeyloncFileManager.java:150)
at com.sun.tools.javac.util.JavacFileManager.getJavaFileForOutput(JavacFileManager.java:1096)
at lombok.javac.apt.InterceptingJavaFileManager.getJavaFileForOutput(InterceptingJavaFileManager.java:49)
at com.sun.tools.javac.jvm.ClassWriter.writeClass(ClassWriter.java:1451)
at com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java:691)
at com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1381)
at com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1349)
at com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java:851)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:810)
at com.redhat.ceylon.compiler.launcher.Main.compile(Main.java:429)
at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:132)
at com.redhat.ceylon.eclipse.imp.builder.CeylonBuilder.generateBinaries(CeylonBuilder.java:882)
at com.redhat.ceylon.eclipse.imp.builder.CeylonBuilder.build(CeylonBuilder.java:578)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
```

It may be that it only happens when Eclipse is started with Java 7 (which does not work anyway – warning concerning format 51), while everything is silent with Java 6 (but won’t work anyway).