-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
import source actions for java (jdtls) don't work #5421
Comments
The log line:
is relevant. It looks like jdtls is using an extension to the LSP spec to tell the client how to execute commands |
Same here. Helix version 22.12, using OpenSuse Tumbleweed and jdtls 1.19.0 installed with brew. The helix.log file: Is an issue on jdtls? Thanks 😄 |
Sounds like the LS is trying to perform dynamic capability registration. Helix does not set the appropriate client capabilities (dynamicRegistration) and therefore does not support this feature. According to the LSP spec the server is not allowed to send these requests in that case so that is an upstream issue. |
Is there anything I can do to attempt to gather more information? |
Upstream have an ancient issue about this. Apparently the vscode client depends on the non-spec behavior, so they refuse to fix it. |
FWIW I posted a PR to jdtls to fix this but there hasn't been any feedback for a while |
since the linked PR doesn't get any replies for a month now, I've temporarily published a build of that commit over here in case anyone wants to test: https://github.com/theli-ua/eclipse.jdt.ls/releases/tag/java.apply.WorkspaceEdit |
I'm going to close this. It appears to be working for me with 23.10 and |
Summary
Attempting to use a to import a missing classes does nothing and gives no feedback.
The classes that should be importable are shown in the menu popup for the import single option.
Additionally, selecting a completion option does does cause the import to appear.
I reproduced this with a minimal project containing 2 classes.
There do appear to be interesting messages in helix.log attached below.
In the attached helix.log the first log message that occurs on source action is the message from helix_term::commands::lsp
Reproduction Steps
See recording at https://asciinema.org/a/5iISIPMQuUoCrTFA4UirtTn7O
Starting from a minimal maven project with a pom and 2 classes I
<space>a
Nothing happens.
Helix log
~/.cache/helix/helix.log
Platform
macOS
Terminal Emulator
wezterm version: 20221119-145034-49b9839f
Helix Version
helix 22.12 (96ff64a)
The text was updated successfully, but these errors were encountered: