无法使Project Lombok在Eclipse(Helios)上工作 [英] Cannot make Project Lombok work on Eclipse (Helios)
问题描述
我已经按照这里的教程
在评论:
< blockquote>
一个简单的重新启动不足以接管更改的vmargs:
我需要显式退出然后重新开始。
如果您碰巧运行定制的Eclipse Helios(3.6+)发行版,那么您可能必须使用
vm
参数中的lombok.jar
的完整路径。
请参阅 commit b47e87f 获取更多详细信息。
boolean fullPathRequired = IdeFinder.getOS()== EclipseFinder.OS.UNIX || System.getProperty(lombok.installer.fullpath)!= null;
I have followed the tutorial here http://projectlombok.org/
but after adding import and @Data
nothing happens.
Does it work on eclipse helios ?
Did you add
-vmargs
...
-javaagent:lombok.jar
-Xbootclasspath/a:lombok.jar
to your eclipse.ini?
Because if you have (and if you have added the lombok.jar to the libraries used by your project), it works just fine with Eclipse Helios:
Ian Tegebo mentions in the comments that:
a simple "restart" was not sufficient to pick up the changed vmargs:
I needed to explicitly exit and then start again.
chrisjleu mentions in the comments:
If you happen to be running a customized Eclipse Helios (3.6+) distribution then you may have to use the full path to
lombok.jar
in both thevm
arguments.
See commit b47e87f for more details.
boolean fullPathRequired = IdeFinder.getOS() == EclipseFinder.OS.UNIX || System.getProperty("lombok.installer.fullpath") != null;
这篇关于无法使Project Lombok在Eclipse(Helios)上工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!