skip to Main Content

In my Windowns 11 environment I use Visual Studio Code (1.87.2) to develop Java applications. In one of these apps we use some of the Project Lombok’s annotations (1.18.24) such as @Builder, @Data, @EqualsAndHashCode and so on.

After opening the project using Eclipse For Java Developers (2024-03 R) and going back to VSCode every class that uses the annotations showed errors on VSCode and the project doesn’t compile anymore. Apparently the error that traces back to the rest is the one in the title as I found another user with the same problems in this issue: https://github.com/redhat-developer/vscode-java/issues/3561.

The error persisted even after I tried updating to the latest Lombok release (1.18.32), removing the Eclipse installation, using a previous version, deleting all info from my SO user and reconfiguring the environment (JDK + Maven).

I need help to understand the problem to see if it’s fixable and how should I go on if possible or if the case is a matter of waiting until a fix is added.

2

Answers


  1. Like it was already mentioned the fix was to go back to Language Support for Java(TM) by Red Hat Extension version 1.28.1:

    code --install-extension [email protected]
    

    After that, run in VS Code:

    Java: Force Java Compilation

    Full

    Login or Signup to reply.
  2. For Eclipse:

    I was able to fix it by installing the latest lombok (1.18.32) on my eclipse install, run a mvn clean install of my project and then a full clean of my workspace on Eclipse.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search