-
Notifications
You must be signed in to change notification settings - Fork 418
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
[LSP] Failed to handle notification initialize #1499
Comments
@luizribeiro I think this is most likely because you don't send any client capabilities in your initialization request. Try to add at least support for text synchronization in your client implementation. |
Thanks @mholo65, you are right! Looks like vim-ale doesn't send any capabilities because of a TODO that was left behind: Aren't all these fields optional on the LSP spec? LSP should announce the capabilities it supports, but this is the first server I encounter that doesn't work with vim-ale because of this. Either way, sending this as the capabilities made me get past the initialize message: {
"workspace":{},
"textDocument":{
"completion":{
"completionItem":{
"snippetSupport":false
}
}
}
} When I tried sending the text synchronization, I ran into #1403. |
Some capabilities are now sent by ALE, but you should also allow clients to connect to the server without sending any capabilities. All of the keys are optional. |
@w0rp yes, that’s a bug in the LSP implementation we are using. We are currently seeing other issues regarding initialization (and capabilities) and will put this on the list of things to do. //cc @david-driscoll |
Tracking fix here OmniSharp/csharp-language-server-protocol#141 |
This should be fixed via OmniSharp/csharp-language-server-protocol#147 |
Just got hit by this using I worked around it by adding |
I'm pretty sure we can close this. I've been using omnisharp-roslyn successfully with vim-ale. Thanks for all your work on this! |
I'm working on integrating vim-ale directly with omnisharp-roslyn's LSP server, as omnisharp-vim does not use the LSP as far as I can tell. This is so I can get auto-completion through vim-ale and LSP and not through omnicomplete itself.
In doing so, I've been getting errors back from omnisharp's LSP server. More specifically:
In other words, this is the exception that omnisharp-roslyn is giving me during initialization:
For reference, this seems to be the command that vim-ale is sending to initialize the LSP:
Any idea what's up?
The text was updated successfully, but these errors were encountered: