question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Currently there are errors because Project Lombok is generating code, but this is not detected.

I was able to use the lombok with w0rp/ale by configuring the java executable path. It should also possible to set the param -cp in coc-java with java.jdt.ls.vmargs when it isn’t overwritten.

https://github.com/w0rp/ale/issues/2242#issuecomment-478986885

For Vscode there is also: https://marketplace.visualstudio.com/items?itemName=GabrielBB.vscode-lombok

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11

github_iconTop GitHub Comments

17reactions
geeogicommented, Dec 14, 2020

@andys8’s solution enabled Lombok for me, but the normal JDT compilation started to fail. I was able to resolve this by removing the -Xbootclasspath flag, as described in this comment.

My cos-settings.json looks like this:

{
     "java.jdt.ls.vmargs": "-javaagent:/absolute/path/to/lombok.jar" 
}

Download Lombok Jar from https://projectlombok.org/download.

15reactions
andys8commented, Jun 27, 2019

Okay, I figured it out. In case somebody has the same issue:

https://github.com/redhat-developer/vscode-java/wiki/Lombok-support describes configuration for vscode. It works the same way. It’s important to avoid “~” and use the absolute path! See https://github.com/neoclide/coc.nvim/issues/650

coc-settings.json

{
  "java.jdt.ls.vmargs": "-javaagent:/usr/local/share/lombok/lombok-1.18.6.jar -Xbootclasspath/a:/usr/local/share/lombok/lombok-1.18.6.jar"
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Project Lombok
Project Lombok is a java library that automatically plugs into your editor and build tools, spicing up your java. Never write another getter...
Read more >
Introduction to Project Lombok - Baeldung
A comprehensive and very practical introduction to many useful usecases of Project Lombok on standard Java code.
Read more >
projectlombok/lombok: Very spicy additions to the ... - GitHub
Project Lombok is a java library that automatically plugs into your editor and build tools, spicing up your java. Never write another getter...
Read more >
Project Lombok: Clean, Concise Java Code - Oracle
Project Lombok is a mature library that reduces boilerplate code. The cases mentioned above cover just a few of those where Project Lombok...
Read more >
Introduction to Project Lombok in Java and How to get started?
Project Lombok is a java library tool that is used to minimize/remove the boilerplate code and save the precious time of developers during ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found