-
Notifications
You must be signed in to change notification settings - Fork 138
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
signatureHelpProvider returns empty response #985
Comments
Hi @jemag This looks like an effect of the Go bindings for LSP which we leverage from gopls, or rather the unfortunate effect of these bindings being generated from TypeScript where a field/variable can freely change type while still communicating the subset of types that are supported. terraform-ls/internal/protocol/protocol.go Lines 4319 to 4322 in 14e71fd
This of course doesn't translate that well into any strongly typed language such as Go, so gopls maintainers already used terraform-ls/internal/protocol/protocol.go Lines 4391 to 4394 in 14e71fd
The only reason this likely doesn't affect gopls is because it already implements that We could either send a patch upstream to gopls, to fix the logic which generates the Go bindings, and/or re-implement the whole As for a better long-term solution, LSP 3.17 finally introduced machine-readable spec. AFAIK nobody has yet tried to generate Go binding from that, but it's likely going to be much easier, cleaner and safer and it may eradicate problems like this. The same problem likely applies to onTypeFormatting capability which we don't implement (yet) terraform-ls/internal/protocol/protocol.go Lines 4381 to 4384 in 14e71fd
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Server Version
Terraform Version
Client Version
Log Output
https://gist.github.com/cb9737660e034ef2b4430b7bf5702c45
Expected Behavior
SignatureHelpProvider capabilities returns nothing
Actual Behavior
SignatureHelpProvider returns empty response
Steps to Reproduce
Notes
It seems that currently signature help is not supported (#857). However, the server currently seems to return an empty response instead of simply returning nothing.
This makes it hard for clients of the server to guess if the capability is actually supported or not. See : neovim/neovim#18939
From that issue, to add context:
The text was updated successfully, but these errors were encountered: