Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Lombok doesn't appear to be working in Eclipse 2023-12 on Ubuntu, but is on Windows 11 #3616

Open
davidmichaelkarr opened this issue Feb 29, 2024 · 1 comment

Comments

@davidmichaelkarr
Copy link

davidmichaelkarr commented Feb 29, 2024

I have Eclipse 2023-12 installed on both my Windows 11 laptop and the Ubuntu VM also running on my laptop. I had no trouble installing lombok on Windows. The application using it appeared to work fine. I also saw the lombok version in the "About" dialog.

On the Ubuntu VM, it first wasn't able to locate the Eclipse distribution, so I had to browse to it. It said it did it, and I saw in the "eclipse.ini" file that it added the "agent" reference. However, the "About" dialog doesn't show the lombok version, and the same application that works fine on the Windows host is getting compile errors that imply that Lombok isn't doing what it should be. For instance, a class with a "@slf4j" annotation works fine on the Windows side, but on Ubuntu, I get a compile error for the "log" references, as that variable is not defined.

Also, to be certain, I also installed Lombok as a plugin, but that had no effect. Same issue.

I looked in the Eclipse log, and I didn't see any error concerning lombok.

Oh, and a command-line mvn build of the same application succeeds, so lombok is working fine in the build, and in Eclipse on Windows, just not in Eclipse in Ubuntu.

@rspilker
Copy link
Collaborator

@davidmichaelkarr Thanks for the report, I'll try to help, and first want to make sure it is a problem inside lombok.

Could it be that you didn't quit Eclipse and start it from scratch in Ubuntu? A "normal" restart doesn't release the file handles, so you could be looking at a different version of the file.

Also, please make sure you modified the right eclipse.ini. Try to figure out where the executable of your eclipse is located and make sure that the ini-file is in the same directory. A common problem I've encountered is that people have multiple Eclipse installation, and modify the wrong one.

How do you launch your Eclipse? Are you using any parameters, instructing Eclipse to use a different ini-file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants