无法使Project Lombok在Eclipse(Helios)上工作 [英] Cannot make Project Lombok work on Eclipse (Helios)

查看:139
本文介绍了无法使Project Lombok在Eclipse(Helios)上工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经按照这里的教程
评论



< blockquote>

一个简单的重新启动不足以接管更改的vmargs:

我需要显式退出然后重新开始







chrisjleu 中提到的评论


如果您碰巧运行定制的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 the vm 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆