-
Notifications
You must be signed in to change notification settings - Fork 206
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
vscode ext causes "Header must provide a Content-Length property" continuously #968
Comments
These issues are usually related to the logging setup on the JVM... Can you check if JVM you are using to launch spring boot ls is different from the JVM launching Java LS? Read through the issue below: Ensure there are no java agents contributing to the log output etc... The issue is that something in the JVM attempts to write something to the output stream of the Spring Boot LS java process. The output stream of that process is used to send messages from the LS to the IDE client. Therefore IDE client throws an error that there is something unexpected found in the output stream. |
I didn't change neither I can comfirm that this issue only happens when I upgrade vscode-spring-boot to v1.44.0. I did tweak |
The errors were gone after adding |
This error occurred again, I do not know what will trigger this error, I temporarily disabled the spring-boot-tools. |
@ZinkLu do you recall what you were doing in VSCode at the moment of the error? Which editor you were working with? Lets try to determine which LSP messages causes this error assuming it is some particular message... hopefully...
Continue working with spring-boot extension. Once the "header content length" error occurs note the log and attach/paste the relevant part of it here please. |
Hi @BoykoAlex, It's likely to reproduce the issue with following steps:
Here is my example: Trace log whe the issue happen;
|
The issue is that OpenRewrite dependency has a Here is the fix for rewrite project: openrewrite/rewrite#2804 Once it is merged then spring-boot extension is built I'll post the download link to VSIX file to try and close the issue. |
Please try spring-boot extension VSIX (snapshot) at the bottom of the page: https://dist.springsource.com/snapshot/STS4/nightly-distributions.html Should fix the issue. |
Describe the bug
'to go defined' and 'code completion' fails. Developer Tools console continues to report errors "Header must provide a Content-Length property"
To Reproduce
MacOS 13.1 M1
install vscode 1.75.0
install vmware.vscode-spring-boot v1.44.0
Write some code that will cause the Java language server reports error(for example: call a function with invaid arguement), then the error is likely to be reproduced.
The text was updated successfully, but these errors were encountered: