-
Notifications
You must be signed in to change notification settings - Fork 419
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
Language Support for Java extension never finishes starting #2292
Comments
-- Edit -- |
Reinstalled the entire VS Code erasing the config and workspace settings, still same error. Updated the maven projects and installed the dependencies in the local repository and the extension started working again. I'm still not sure what is going on, but at the very least the error messages are not clear. |
Same issue. The logs in Developer Tools:
Java Language Server log:
When I connect to the host rather than the container, testing with the same java file, everything works fine. Env in container: |
Same issue here. mainThreadExtensionService.ts:80 Error: Header must provide a Content-Length property. at p.onData (vscode-file://vscode…ension.js:2:1052283) at Socket.<anonymous> (vscode-file://vscode…ension.js:2:1052004) at Socket.emit (node:events:390:28) at addChunk (node:internal/streams/readable:315:12) at readableAddChunk (node:internal/streams/readable:289:9) at Socket.Readable.push (node:internal/streams/readable:228:10) at Pipe.onStreamRead (node:internal/stream_base_commons:199:23)
|
Same issue here. Cannot find a way around it. The workaround posted in other threads doesn't work for me. |
Same issue. Workaround is not working for me. |
What happens if you try You can still keep the other vmargs (just to be consistent with the default) :
|
Thank you so much @rgrunber . This has fixed the issue for me: "java.jdt.ls.vmargs": "-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx1G -Xms100m -Xlog:disable" |
@testforstephen , @fbricon , we may want to consider having |
Since |
- Since any JVM component may invoke logging, it may be best to disable all logging - Related redhat-developer#2577 - Fixes redhat-developer#2292 Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
Whenever the extension activates, its icon on the bottom-right starts "loading" and never turns into the "Thumbs Up" icon. Able to reproduce with individual Java files and Maven projects.
Best problem indication so far is the console log "Error: Header must provide a Content-Length property".
The practical result is that the extension does not work at all (code navigation, intellisense, etc).
Environment
Version: 1.63.2
Commit: 899d46d82c4c95423fb7e10e68eba52050e30ba3
Date: 2021-12-15T09:39:46.686Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Linux x64 5.4.0-72-generic snap
Steps To Reproduce
Also happens when I open a Maven project (my real-world use case).
What I've tried so far
/home/username/.config/Code/User/workspaceStorage/
folderF1
>Java: Clean Java Language Server Workspace
Logs
I set the
java.trace.server
setting toverbose
and the extension log file got pretty big (1.4k lines), so I pasted it in pastebin (link below).The VSCode's Developer Tools Console shows errors such as:
Java Extension log file: https://pastebin.com/nwL6SBS1
Java Language Server log file:
The text was updated successfully, but these errors were encountered: