-
Notifications
You must be signed in to change notification settings - Fork 208
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
Opening Spring Boot project in VSCode leads to StackOverflowError #1166
Comments
I hope this issue should be fixed with: d4cf735. Do you mind giving a snapshot build a try? To do so please download VSIX file for Spring Boot Tools from this page (see the bottom of the page): https://cdn.spring.io/spring-tools/snapshot/STS4/nightly-distributions.html. Then install the VSIX into the vscode via the extensions view (the If this doesn't help wonder if there is a project you can share that reproduces the issue... Also include the file name of the VSIX that you've installed. |
Snapshot version works fine and no error is displayed. Thank you for your help! |
No problem at all - thanks for bringing this up to us!!! |
Thanksss! |
I believe this issue might have been reintroduced, or something that produces similar symptoms, in spring-boot-extension v1.55.0. Not sure about earlier versions. Here is the new stacktrace with personal info redacted. Repeating lines at the end are generated infinitely until it crashes. Activating 'vscode-spring-boot' extension
Trying to use "spring-boot.ls.java.home" value: ██████████/.sdkman/candidates/java/17.0.11-amzn
Found java executable: ██████████/.sdkman/candidates/java/17.0.11-amzn/bin/java
isJavaEightOrHigher => true
Redirecting server logs to /dev/null
Disabling server log output. No more output will be sent after this.
[Error - 4:55:17 PM] Request textDocument/codeAction failed.
Message: Internal error.
Code: -32603
java.util.concurrent.CompletionException: java.lang.StackOverflowError
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)
at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:649)
at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.lang.StackOverflowError
at org.eclipse.jdt.core.dom.TypeBinding.isClass(TypeBinding.java:1080)
at org.eclipse.jdt.core.dom.TypeBinding.isAnonymous(TypeBinding.java:1028)
at org.eclipse.jdt.core.dom.TypeBinding.getName(TypeBinding.java:704)
at org.eclipse.jdt.core.dom.TypeBinding.getQualifiedName(TypeBinding.java:837)
at org.springframework.ide.vscode.boot.java.annotations.AnnotationHierarchies.getDirectSuperAnnotations(AnnotationHierarchies.java:54)
at org.springframework.ide.vscode.boot.java.annotations.AnnotationHierarchies.hasTransitiveSuperAnnotationType(AnnotationHierarchies.java:90)
at org.springframework.ide.vscode.boot.java.annotations.AnnotationHierarchies.hasTransitiveSuperAnnotationType(AnnotationHierarchies.java:92)
at org.springframework.ide.vscode.boot.java.annotations.AnnotationHierarchies.hasTransitiveSuperAnnotationType(AnnotationHierarchies.java:92)
at org.springframework.ide.vscode.boot.java.annotations.AnnotationHierarchies.hasTransitiveSuperAnnotationType(AnnotationHierarchies.java:92)
at org.springframework.ide.vscode.boot.java.annotations.AnnotationHierarchies.hasTransitiveSuperAnnotationType(AnnotationHierarchies.java:92)
at org.springframework.ide.vscode.boot.java.annotations.AnnotationHierarchies.hasTransitiveSuperAnnotationType(AnnotationHierarchies.java:92)
at org.springframework.ide.vscode.boot.java.annotations.AnnotationHierarchies.hasTransitiveSuperAnnotationType(AnnotationHierarchies.java:92)
at org.springframework.ide.vscode.boot.java.annotations.AnnotationHierarchies.hasTransitiveSuperAnnotationType(AnnotationHierarchies.java:92) And here is the repeating lines from
|
Lets try this fix: f14172d |
Should be fixed in the snapshot or pre-release build. Polish commit: 0312d53 |
Describe the bug
A clear and concise description of what the bug is.
Opening Spring Boot project is opened error message is shown from VSCode -
Request textDocument/codeAction failed.
:Extension log file from Go to output button:
Last seven lines are repeated many times.
In Extension host log file these lines are also repeated many times:
The project is based on spring boot 2.7.17, and only enabled extensions are Debugger for Java, Language Support for Java(TM) by Red Hat, Spring Boot Dashboard, Spring Boot Extension Pack, Spring Boot Tools and Spring Initializr Java Support.
The text was updated successfully, but these errors were encountered: