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.

Document how to run lombok when its path contains spaces

See original GitHub issue

As the title says, I am having this issue on a gradle project that was created in InteliJ (and worked just fine there with the lombok plugin). I do get normal intelisense but after adding the vmargs option the language server won’t boot up.

Environment
  • Operating System: W10
  • JDK version: 8
  • Visual Studio Code version: 1.8.1
  • Java extension version: 0.0.8

Following https://github.com/redhat-developer/vscode-java/wiki/Lombok-support this is my settings.json

// Place your settings in this file to overwrite the default settings
{
    "editor.insertSpaces": true,
    "editor.tabSize": 2,
    // C:\Program Files\Java
    "java.jdt.ls.vmargs": "-javaagent:C:\\Program Files\\Java\\lombok.jar -Xbootclasspath/a:C:\\Program Files\\Java\\lombok.jar"
}

I imagine this could a problem with

a:) the fact that gradle support is recent and its not a supported feature b:) my path format is bad (in this case I recommend adding some example for windows to the wiki page for clarity)

It’s probably option b. As a java newcommer I have no idea how the formats should look like and querying google is hard since I don’t really know what to really ask for however basing myself off http://stackoverflow.com/questions/22310414/how-to-configure-lombok-in-eclipse-luna I think I kinda got right or did I?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
fbriconcommented, Jan 1, 2017

Ok, I’ll look into it next week.

0reactions
fbriconcommented, Jan 11, 2017

Fixed with 80f4443.

Instructions updated in https://github.com/redhat-developer/vscode-java/wiki/Lombok-support

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to configure lombok in eclipse luna - java - Stack Overflow
I strongly suggest installing Lombok via executing the lombok jar: java -jar lombok.jar The spaces in the path might be a problem. Also,...
Read more >
Java Project Lombok | DigitalOcean
Copy lombok.jar into Eclipse.app/Contents/MacOS directory. Add -javaagent:lombok.jar to the end of Eclipse.
Read more >
@Data - Project Lombok
@Data is a convenient shortcut annotation that bundles the features of @ToString , @EqualsAndHashCode , @Getter / @Setter and @RequiredArgsConstructor together: ...
Read more >
Introduction to Project Lombok in Java and How to get started?
1. Without Lombok: · 2. With Lombok: · 1. Download the Lombok jar file from this official link. · 2. Double click on...
Read more >
When Should I Use Project Lombok? - Reflectoring
Since the Java Compiler Specification does not prevent annotation processors from modifying source files, Lombok developers have cleverly ...
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 Reddit Thread

No results found

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