Skip to content

lombok @Singular cause Lombok annotation handler class lombok.eclipse.handlers.HandleBuilder failure #3561

Closed

Description

@lamplification

Lombok @Singular cause Lombok annotation handler class lombok.eclipse.handlers.HandleBuilder failed

Environment
  • Operating System: Ubuntu x86_64 x86_64 x86_64 GNU/Linux
  • JDK version: 17
  • Visual Studio Code version: 1.87.2
  • Java extension version: Language Support for Java(TM) RedHat 1.29.0
Steps To Reproduce
  1. create a demo java project
  2. create a simple POJO with use of @Singular and @builder
  3. see Problem tab - Lombok annotation handler class lombok.eclipse.handlers.HandleBuilder failed - See error log.
    image

demo.zip

Current Result

Lombok annotation handler class lombok.eclipse.handlers.HandleBuilder failed - See error log.

Expected Result

No issue

Additional Informations

Comment @Singular in the Domain.java, everything work as expected. It is working in Intellij.

Activity

  1. changed the title [-]ombok @Singular cause Lombok annotation handler class lombok.eclipse.handlers.HandleBuilder failure[/-] [+]lombok @Singular cause Lombok annotation handler class lombok.eclipse.handlers.HandleBuilder failure[/+] on Apr 3, 2024
  2. snjeza commented on Apr 4, 2024

    @snjeza
    Collaborator

    This is an upstream lombok issue caused by eclipse-jdt/eclipse.jdt.core@cb6774f

  3. assigned and unassigned on Apr 4, 2024
  4. lamplification commented on Apr 4, 2024

    @lamplification
    Author

    Thank you @snjeza , I rolled back to v1.27.0 for Language Support for Java(TM) by Red Hat. That version is working.

  5. sashirestela commented on Apr 4, 2024

    @sashirestela

    Thank you @snjeza , I rolled back to v1.27.0 for Language Support for Java(TM) by Red Hat. That version is working.

    Rolling back to v1.28.1 is working too.

  6. sashirestela commented on Apr 9, 2024

    @sashirestela

    @snjeza Please, could you tell us if you have any estimated time for a fixing here?

  7. snjeza commented on Apr 9, 2024

    @snjeza
    Collaborator

    @sashirestela This is a lombok issue. You could ask at projectlombok/lombok#3648

  8. ekeric13 commented on Apr 25, 2024

    @ekeric13

    how do you rollback a vscode extension version?

  9. azriel-healthpoint commented on Apr 25, 2024

    @azriel-healthpoint

    @ekeric13 Click on the drop down next to Uninstall:

    image

    Then this list appears:

    image

    Pick the version you want.

    I think you have to restart VS code + Clean Java Language Workspace after.

    enjoy ✌️

  10. sashirestela commented on Apr 25, 2024

    @sashirestela

    Does anyone know if the last version (1.30.0) is fixing the bug?

  11. 7 remaining items

  12. marco-belonio commented on Jun 11, 2024

    @marco-belonio
    Contributor

    Missed @daniel-belonio's comment. He already pointed out what the problem indeed is - It's an older lombok version delivered with the extension.

  13. marco-belonio commented on Jun 11, 2024

    @marco-belonio
    Contributor

    See #3674 :)

    If you agree, please merge it :)

  14. added this to the End June 2024 milestone on Jun 12, 2024
  15. rgrunber commented on Jun 25, 2024

    @rgrunber
    Member

    Pre-releases since v1.32.2024061408 should have included the 1.18.33 edge release which fixed this. It will make our upcoming 1.32 release.

  16. Kogs commented on Jun 27, 2024

    @Kogs

    Can confirm new version 1.32.0 seems to fix the issue. 🚀

  17. Kogs commented on Aug 14, 2024

    @Kogs

    It seems the problem reappeared in the new 1.33.0 release.

  18. rgrunber commented on Aug 14, 2024

    @rgrunber
    Member

    This is being tracked at #3733 .

    The upstream issue is projectlombok/lombok#3706 .

  19. luccahuguet commented on Oct 28, 2024

    @luccahuguet
    • with v1.35.1 I had this same bug
    • but downgrading to v1.32.0 worked for me
    • And better yet, downgrading to v1.34.0 also worked for me
    • I am currently using this version of java
    java --version
    openjdk 11.0.25 2024-10-15
    OpenJDK Runtime Environment Temurin-11.0.25+9 (build 11.0.25+9)
    OpenJDK 64-Bit Server VM Temurin-11.0.25+9 (build 11.0.25+9, mixed mode)
    
  20. rgrunber commented on Oct 28, 2024

    @rgrunber
    Member

    Could you try the latest vscode-java from the pre-release stream and see if that resolves the issue ? As far as I can tell, we've been pulling from the latest lombok builds for some time, so if the issue was solved upstream, then it should be there.

  21. luccahuguet commented on Oct 28, 2024

    @luccahuguet

    Could you try the latest vscode-java from the pre-release stream and see if that resolves the issue ? As far as I can tell, we've been pulling from the latest lombok builds for some time, so if the issue was solved upstream, then it should be there.

    Ok, I tried it and it didn't work, back to 1.34.0 then

  22. rgrunber commented on Oct 29, 2024

    @rgrunber
    Member

    @luccahuguet what's the error that you're seeing ? i just tried the sample project in #3733, and it works just fine. No errors.

  23. foxpluto commented on Dec 4, 2024

    @foxpluto

    Just tested with v1.38.2024120308 and still not working, reverted back to 1.34.0 worked again.

  24. rgrunber commented on Dec 4, 2024

    @rgrunber
    Member

    Seems to be working with v1.38.2024120308 for me. Does language server status bar say you're using the extension's version of Lombok, or the project's version ?

    Image

  25. foxpluto commented on Dec 4, 2024

    @foxpluto

    For me that menu is:

    Image

    Image

    Image

    Unfortunately it doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions