-
Notifications
You must be signed in to change notification settings - Fork 406
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
Unhandled null in getWorkDoneProgress() breaks Vim usage #2936
Comments
Yes, JDT-LS can certainly fix the issue. The LSP spec defines https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#clientCapabilities :
So the value can be JDT-LS should definitely handle the The client could also work around the issue by setting @hopehadfield feel free to fix on our end. |
Il giorno lun 30 ott 2023 alle 10:02:28 -07:00:00, Roland Grunberg
***@***.***> ha scritto:
So the value can be true, false, or null (optional).
JDT-LS should definitely handle the null the same way we would handle
false.
Nice to hear, thanks for your fast response!
The client could also work around the issue by setting
workdoneProgress to true at
https://github.com/yegappan/lsp/blob/38970403dc4d602056ea4028664206ffce74e82a/autoload/lsp/capabilities.vim
but . If the client supports this capability, they'll need to set it
to true.
I assume you wanted to write "The client could also work around the
issue by setting workdoneProgress to false" (instead of "true"), right?
If you think that this vim9 lsp client does indeed support
workDoneProgress capability, I'll ask upstream to add it to the
capability list.
Thanks again :)
|
@Tachi107 , Yes exactly. I think if you're receiving the comment updates by e-mail, you don't see the subsequent edits I do. I updated once i discovered the lsp client mentioned ignores |
Hi all, pull request #2776 (commit 2774467) broke jdtls for me when using it in Vim with the vim9 lsp plugin. More specifically, the
getWorkDoneProgress()
method is returning null, which causes a null pointer exception when using it in the newisWorkDoneProgressSupported()
method.Here's the error message shown by the lsp plugin when using jdtls 1.27.0:
The issue is still present in the 1.29.0 release (and I suspect in the master branch too).
What's the root of the issue here? Is the vim9 lsp plugin doing something wrong, or should jdtls account for nulls returned by
getWorkDoneProgress()
?Cc: @hopehadfield
The text was updated successfully, but these errors were encountered: