英文:
Lombok is woking in commad line but it is not in "Run Java Application"(Eclipse
问题
我正在使用Lombok(1.18.12)和Eclipse-2020-03-(4.15.0)。我已经安装了Lombok,使用的是JAR文件。我已经在文件“eclipse.ini”中看到了您的配置。但是当我在Eclipse中执行程序(Spring Boot + Maven的Run Application)时,它不起作用;但是当我通过命令行执行程序时,它却起作用。
为什么会这样呢?
感谢您的帮助。
英文:
I am using Lombok(1.18.12) and Eclipse-2020-03-(4.15.0). I am already the intallation of Lombok, to JAR. I already see in file "eclipse.ini" the your configuration. But It is not working when I execute the program(Spring boot + Maven) for Eclipse(Run Application), but when I execute the program for command line It work.
Why?
Thanks for help.
答案1
得分: 0
请检查Eclipse是否加载了lombok,您可以通过打开"Eclipse简介"对话框来进行,您应该会看到 Lombok v1.18.12 "Envious Ferret" 已安装。 如果您没有看到这个,那么lombok没有在运行。在我的机器上,当我使用./eclipse
而不是使用Eclipse.app
启动eclipse时,就会出现这个问题,后者能够正确加载lombok。
英文:
Check that Eclipse is loading lombok, you can do that by opening the About Eclipse dialog, you should see Lombok v1.18.12 "Envious Ferret" is installed. If you don't see that, then lombok is not running. On my machine I have that problem when I start eclipse with ./eclipse
instead of using Eclipse.app
wich loads lombok just fine.
专注分享java语言的经验与见解,让所有开发者获益!
评论