无法使 Project Lombok 在 Eclipse 上工作 [英] Cannot make Project Lombok work on Eclipse
问题描述
我已按照此处的教程进行操作 在 评论:
<块引用>简单的重新启动"不足以获取更改后的 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 上工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!