redhat-developer / vscode-java

Java Language Support for Visual Studio Code
Eclipse Public License 2.0
2.08k stars 441 forks source link

After upgrade version >1.35, my project with lombok and hibernate-jpamodelgen stop to works #3842

Open AntonioSeleda opened 2 weeks ago

AntonioSeleda commented 2 weeks ago

I have a project that uses both Lombok and Hibernate JPA ModelGen. Until version 1.35 of the "Language Support for Java" extension, everything worked fine. After upgrading the plugin and cleaning the workspace, the build enters an infinite loop.

I've attached the log file to this issue for reference. For now, I'm forced to continue working with the older version.

The errors are;

!ENTRY org.eclipse.jdt.core 4 0 2024-11-05 10:00:46.486
!MESSAGE Lombok annotation handler class lombok.eclipse.handlers.HandleGetter failed
!STACK 0
java.lang.StackOverflowError
    at java.base/java.util.regex.Pattern$GroupTail.match(Unknown Source)
    at java.base/java.util.regex.Pattern$LazyLoop.match(Unknown Source)
    at java.base/java.util.regex.Pattern$GroupTail.match(Unknown Source)
    at java.base/java.util.regex.Pattern$BranchConn.match(Unknown Source)
    at java.base/java.util.regex.Pattern$BmpCharProperty.match(Unknown Source)

and

!ENTRY org.eclipse.core.resources 4 2 2024-11-05 10:01:12.071
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
!STACK 0
java.lang.NullPointerException: Cannot invoke "java.util.Map.get(Object)" because "this.problemsMap" is null
    at org.eclipse.jdt.internal.compiler.CompilationResult.getContext(CompilationResult.java:407)
    at org.eclipse.jdt.internal.compiler.Compiler.backupAptProblems(Compiler.java:548)
    at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:478)
    at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:447)
    at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:441)
    at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.compile(BatchImageBuilder.java:250)
    at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:372)
    at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:118)[.bak_0.log](https://github.com/user-attachments/files/17629962/default.bak_0.log)

.bak_0.log .bak_1.log .bak_2.log .bak_3.log .bak_4.log .bak_5.log .bak_6.log .bak_7.log .bak_8.log .bak_9.log .log

bsproger commented 2 weeks ago

Have a look at this issue

Just switch Lombok version