lsp: SignatureHelp.activeParameter can be -1 #20874
Labels
bug
[core label]
dart
Dart programming language support
java
Java programming language support
language server failure
Language server doesn't work as expected
language server
An umbrella label for all language servers
Check for existing issues
Describe the bug / provide steps to reproduce it
At least two LSPs (Dart and Eclipse jdtls) send SignatureHelp objects where the activeParameter is
-1
which yields the following error:In v3.16 of the LSP spec SignatureHelp.active_parameter is defined as
uninteger
.In v3.15 it was merely specified as
number
.This is out-of-spec (now), but Zed should handle this more gracefully.
Zed uses gluon-lang/lsp-types. lsp-types implements in signature_help.rs as
u32
:Upstream issues:
Originally discovered here:
Environment
Zed: v0.163.0 (Zed Nightly a35b73e)
OS: macOS 14.7.0
Memory: 64 GiB
Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your Zed.log file to this issue.
No response
The text was updated successfully, but these errors were encountered: