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

Last version broke lombok #3066

Closed
M4urici0GM opened this issue Feb 20, 2024 · 1 comment
Closed

Last version broke lombok #3066

M4urici0GM opened this issue Feb 20, 2024 · 1 comment

Comments

@M4urici0GM
Copy link

after upgrading the server to latest version, lombok stop working:

[ERROR][2024-02-20 14:56:12] ...lsp/handlers.lua:535	"Feb 20, 2024, 2:56:12 PM Lombok annotation handler class lombok.eclipse.handlers.HandleBuilder failed\n'java.lang.StringBuffer org.eclipse.jdt.internal.compiler.ast.Expression.print(int, java.lang.StringBuffer)'\njava.lang.NoSuchMethodError: 'java.lang.StringBuffer org.eclipse.jdt.internal.compiler.ast.Expression.print(int, java.lang.StringBuffer)'\n\tat lombok.eclipse.handlers.EclipseHandlerUtil.createAnnotation(EclipseHandlerUtil.java:1335)\n\tat lombok.eclipse.HandlerLibrary$AnnotationHandlerContainer.handle(HandlerLibrary.java:105)\n\tat lombok.eclipse.HandlerLibrary.handleAnnotation(HandlerLibrary.java:237)\n\tat lombok.eclipse.TransformEclipseAST$AnnotationVisitor.visitAnnotationOnType(TransformEclipseAST.java:265)\n\tat lombok.eclipse.EclipseNode.traverse(EclipseNode.java:107)\n\tat lombok.eclipse.EclipseAST.traverseChildren(EclipseAST.java:231)\n\tat lombok.eclipse.EclipseNode.traverse(EclipseNode.java:74)\n\tat lombok.eclipse.EclipseAST.traverseChildren(EclipseAST.java:231)\n\tat lombok.eclipse.EclipseNode.traverse(EclipseNode.java:69)\n\tat lombok.eclipse.EclipseAST.traverse(EclipseAST.java:224)\n\tat lombok.eclipse.TransformEclipseAST.go(TransformEclipseAST.java:222)\n\tat lombok.eclipse.TransformEclipseAST.transform(TransformEclipseAST.java:183)\n\tat lombok.eclipse.TransformEclipseAST.transform_swapped(TransformEclipseAST.java:107)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:568)\n\tat lombok.launch.PatchFixesHider$Util.invokeMethod(PatchFixesHider.java:133)\n\tat lombok.launch.PatchFixesHider$Transform.transform_swapped(PatchFixesHider.java:256)\n\tat org.eclipse.jdt.internal.compiler.parser.Parser.endParse(Parser.java:11485)\n\tat org.eclipse.jdt.internal.core.util.CommentRecorderParser.endParse(CommentRecorderParser.java:131)\n\tat org.eclipse.jdt.internal.compiler.SourceElementParser.endParse(SourceElementParser.java:830)\n\tat org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:12687)\n\tat org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:12917)\n\tat org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:12874)\n\tat org.eclipse.jdt.internal.compiler.SourceElementParser.parseCompilationUnit(SourceElementParser.java:1122)\n\tat org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:196)\n\tat org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:265)\n\tat org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:574)\n\tat org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:305)\n\tat org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:291)\n\tat org.eclipse.jdt.internal.core.Openable.getBuffer(Openable.java:295)\n\tat org.eclipse.jdt.ls.core.internal.handlers.WorkspaceDiagnosticsHandler.visit(WorkspaceDiagnosticsHandler.java:183)\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:77)\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:87)\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:87)\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:87)\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:87)\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:87)\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:87)\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:87)\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:87)\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:87)\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:87)\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:87)\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:87)\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:87)\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:61)\n\tat org.eclipse.jdt.ls.core.internal.handlers.WorkspaceDiagnosticsHandler.resourceChanged(WorkspaceDiagnosticsHandler.java:108)\n\tat org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:321)\n\tat org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:47)\n\tat org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:311)\n\tat org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:174)\n\tat org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:458)\n\tat org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1586)\n\tat org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:50)\n\tat org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)\n"
[ERROR][2024-02-20 14:56:12] ...lsp/handlers.lua:535	"Feb 20, 2024, 2:56:12 PM Lombok annotation handler class lombok.eclipse.handlers.HandleBuilder failed\n'java.lang.StringBuffer org.eclipse.jdt.internal.compiler.ast.Expression.print(int, java.lang.StringBuffer)'\njava.lang.NoSuchMethodError: 'java.lang.StringBuffer org.eclipse.jdt.internal.compiler.ast.Expression.print(int, java.lang.StringBuffer)'\n\tat lombok.eclipse.handlers.EclipseHandlerUtil.createAnnotation(EclipseHandlerUtil.java:1335)\n\tat lombok.eclipse.HandlerLibrary$AnnotationHandlerContainer.handle(HandlerLibrary.java:105)\n\tat lombok.eclipse.HandlerLibrary.handleAnnotation(HandlerLibrary.java:237)\n\tat lombok.eclipse.TransformEclipseAST$AnnotationVisitor.visitAnnotationOnType(TransformEclipseAST.java:265)\n\tat lombok.eclipse.EclipseNode.traverse(EclipseNode.java:107)\n\tat lombok.eclipse.EclipseAST.traverseChildren(EclipseAST.java:231)\n\tat lombok.eclipse.EclipseNode.traverse(EclipseNode.java:74)\n\tat lombok.eclipse.EclipseAST.traverseChildren(EclipseAST.java:231)\n\tat lombok.eclipse.EclipseNode.traverse(EclipseNode.java:69)\n\tat lombok.eclipse.EclipseAST.traverse(EclipseAST.java:224)\n\tat lombok.eclipse.TransformEclipseAST.go(TransformEclipseAST.java:222)\n\tat lombok.eclipse.TransformEclipseAST.transform(TransformEclipseAST.java:183)\n\tat lombok.eclipse.TransformEclipseAST.transform_swapped(TransformEclipseAST.java:107)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:568)\n\tat lombok.launch.PatchFixesHider$Util.invokeMethod(PatchFixesHider.java:133)\n\tat lombok.launch.PatchFixesHider$Transform.transform_swapped(PatchFixesHider.java:256)\n\tat org.eclipse.jdt.internal.compiler.parser.Parser.endParse(Parser.java:11485)\n\tat org.eclipse.jdt.internal.core.util.CommentRecorderParser.endParse(CommentRecorderParser.java:131)\n\tat org.eclipse.jdt.internal.compiler.SourceElementParser.endParse(SourceElementParser.java:830)\n\tat org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:12687)\n\tat org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:12917)\n\tat org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:12874)\n\tat org.eclipse.jdt.internal.compiler.SourceElementParser.parseCompilationUnit(SourceElementParser.java:1122)\n\tat org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:196)\n\tat org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:265)\n\tat org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:574)\n\tat org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:305)\n\tat org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:291)\n\tat org.eclipse.jdt.internal.core.Openable.getBuffer(Openable.java:295)\n\tat org.eclipse.jdt.ls.core.internal.handlers.WorkspaceDiagnosticsHandler.visit(WorkspaceDiagnosticsHandler.java:183)\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:77)\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:87)\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:87)\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:87)\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:87)\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:87)\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:87)\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:87)\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:87)\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:87)\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:87)\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:87)\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:87)\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:87)\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:61)\n\tat org.eclipse.jdt.ls.core.internal.handlers.WorkspaceDiagnosticsHandler.resourceChanged(WorkspaceDiagnosticsHandler.java:108)\n\tat org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:321)\n\tat org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:47)\n\tat org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:311)\n\tat org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:174)\n\tat org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:458)\n\tat org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1586)\n\tat org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:50)\n\tat org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)\n"
[ERROR][2024-02-20 14:56:12] ...lsp/handlers.lua:535	"Feb 20, 2024, 2:56:12 PM Lombok annotation handler class lombok.eclipse.handlers.HandleConstructor$HandleNoArgsConstructor failed\n'java.lang.StringBuffer org.eclipse.jdt.internal.compiler.ast.Expression.print(int, java.lang.StringBuffer)'\njava.lang.NoSuchMethodError: 'java.lang.StringBuffer org.eclipse.jdt.internal.compiler.ast.Expression.print(int, java.lang.StringBuffer)'\n\tat lombok.eclipse.handlers.EclipseHandlerUtil.createAnnotation(EclipseHandlerUtil.java:1335)\n\tat lombok.eclipse.HandlerLibrary$AnnotationHandlerContainer.handle(HandlerLibrary.java:105)\n\tat lombok.eclipse.HandlerLibrary.handleAnnotation(HandlerLibrary.java:237)\n\tat lombok.eclipse.TransformEclipseAST$AnnotationVisitor.visitAnnotationOnType(TransformEclipseAST.java:265)\n\tat lombok.eclipse.EclipseNode.traverse(EclipseNode.java:107)\n\tat lombok.eclipse.EclipseAST.traverseChildren(EclipseAST.java:231)\n\tat lombok.eclipse.EclipseNode.traverse(EclipseNode.java:74)\n\tat lombok.eclipse.EclipseAST.traverseChildren(EclipseAST.java:231)\n\tat lombok.eclipse.EclipseNode.traverse(EclipseNode.java:69)\n\tat lombok.eclipse.EclipseAST.traverse(EclipseAST.java:224)\n\tat lombok.eclipse.TransformEclipseAST.go(TransformEclipseAST.java:222)\n\tat lombok.eclipse.TransformEclipseAST.transform(TransformEclipseAST.java:183)\n\tat lombok.eclipse.TransformEclipseAST.transform_swapped(TransformEclipseAST.java:107)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:568)\n\tat lombok.launch.PatchFixesHider$Util.invokeMethod(PatchFixesHider.java:133)\n\tat lombok.launch.PatchFixesHider$Transform.transform_swapped(PatchFixesHider.java:256)\n\tat org.eclipse.jdt.internal.compiler.parser.Parser.endParse(Parser.java:11485)\n\tat org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:12687)\n\tat org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:12917)\n\tat org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:12874)\n\tat org.eclipse.jdt.internal.core.search.indexing.SourceIndexer.resolveDocument(SourceIndexer.java:165)\n\tat org.eclipse.jdt.internal.core.search.JavaSearchParticipant.resolveDocument(JavaSearchParticipant.java:116)\n\tat org.eclipse.jdt.internal.core.search.indexing.IndexManager.indexResolvedDocument(IndexManager.java:680)\n\tat org.eclipse.jdt.internal.core.search.indexing.IndexManager$2.execute(IndexManager.java:1291)\n\tat org.eclipse.jdt.internal.core.search.processing.JobManager.indexerLoop(JobManager.java:542)\n\tat java.base/java.lang.Thread.run(Thread.java:840)\n"
@fbricon
Copy link
Contributor

fbricon commented Feb 20, 2024

Duplicate of #2985, caused by projectlombok/lombok#3564. You need to use the latest lombok edge build to launch jdt.ls.

@fbricon fbricon closed this as not planned Won't fix, can't repro, duplicate, stale Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants