LSP functionality stops working very often
See original GitHub issueWhen editing code, the LSP functionally stops to works often, sometimes once every 2 minutes.
In the LSP logs I can see:
!ENTRY org.eclipse.jdt.ls.core 1 0 2018-07-18 13:47:53.406
!MESSAGE >> document/didSave
This is the last entry.
I can also do a ps and see the LSP still running:
/usr/lib/jvm/java-8-oracle/bin/java -Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -noverify -Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication -javaagent:/home/a/.vscode/extensions/gabrielbb.vscode-lombok-0.9.4/server/lombok.jar -Xbootclasspath/a:/home/a/.vscode/extensions/gabrielbb.vscode-lombok-0.9.4/server/lombok.jar -jar /home/atremblay/.vscode/extensions/redhat.java-0.28.0/server/plugins/org.eclipse.equinox.launcher_1.5.100.v20180611-1436.jar -configuration /home/atremblay/.vscode/extensions/redhat.java-0.28.0/server/config_linux -data /home/atremblay/.config/Code/User/workspaceStorage/45a4e3cffe2ce93e37ee8055c276153a/redhat.java/jdt_ws
However in the VSCode LSP output I see that it is still trying to reach the LSP:
[Trace - 13:50:54] Sending request 'workspace/executeCommand - (427)'.
Params: {
.
However it seems these never reach the LSP, I see nothing in the logs of the LSP whatever I do. Also I see a lot of Sending request but no responses there.
In the console log all I see is:
WARN Aborted format on save after 750ms
It’s like it has lost communication ?
Environment
- Operating System: Ubuntu 18.04 (Can repoduce on Arch too)
- JDK version: 1.8
- Visual Studio Code version: 1.25.1
- Java extension version: 0.28.0
Steps To Reproduce
- Hard to tell just edit code and it arrives eventually.
Is there a way I could debug this better ?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:14 (1 by maintainers)
Top Results From Across the Web
Issue with built-in LSP stopping to work suddenly : r/neovim
Sometimes the LSP stops working. I try to go to definition and nothing happens until I edit the file again with :e. The...
Read more >completion stops working after lsp server returns an error ...
The problem seems to be with lsp-completion--get-context that is used as a parameter to the completion request. For whatever reason, lsp- ...
Read more >Performance - LSP Mode - LSP support for Emacs
Configure the following env variable. Make sure that Emacs can see that variable (best way to do that is to start Emacs from...
Read more >Settings - Clojure LSP
By default, clojure-lsp will infer source-paths from the classpath, excluding files that are jar and not under project-root, this usually works for most...
Read more >LSP Client Plugin - KDE Documentation -
Unfortunately, LSP server configuration/customization is often not so well documented, in ways that only examining the source code shows configuration ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@julianosam that’s what I did I removed the extension pack and reinstalled them separately 😃
Close this as it is tracked by vscode java tester.