Lombok now officially supported in Visual Studio Code

1,777 views
Skip to first unread message

GabrielBB

unread,
Mar 12, 2018, 7:15:57 AM3/12/18
to Project Lombok

Daniel

unread,
Mar 19, 2018, 9:40:51 AM3/19/18
to Project Lombok
Hi GabrielBB, thank you so much for your efforts on extending vs code by lombok :)

One further question: I have really tough problems to use lombok in my spring boot maven hello world project.

1. I installed your extension in vs code via the extension manager
2. I changed my pom.xml and added the dependency like here: https://projectlombok.org/setup/maven
3. I compiled my maven project so that lombok was downloaded into C:\Users\daniel\.m2\repository\org\projectlombok\lombok\1.16.20
4. I tried to import lombok in the java src file ..\src\main\java\hello\HelloController.java via "import lombok.data" --> there is the error (The import lombok cannot be resolved)

For sure I can post pics on that..

Maybe / hopefully you have an idea to solve that issue. Thank you so much in advance!

GabrielBB

unread,
Mar 19, 2018, 6:49:22 PM3/19/18
to Project Lombok
Hi, Daniel. This is definitely not an issue with the extension because even with the extension uninstalled i'm able to import lombok packages. It is something about maven. I suggest you to clone this sample repo: https://github.com/ayonious/lombok-examples and try to compile it and run it. I just ran it and it works fine. Make sure to have your VS Code updated and having the "Java Extension Pack"
Message has been deleted

Daniel

unread,
Mar 21, 2018, 2:41:14 PM3/21/18
to Project Lombok
Hi Gabriel, thanks a lot for your answer. I'll try your suggestions. It may be that I don't have Java Extension Pack installed. Thanks again.

Daniel

unread,
Mar 25, 2018, 2:46:09 AM3/25/18
to Project Lombok
Hi Gabriel, well, it works. I dont know exactly why but it works. :) Thanks a lot!
Reply all
Reply to author
Forward
0 new messages