OmniSharp / omnisharp-vim

Vim omnicompletion (intellisense) and more for C#
http://www.omnisharp.net
MIT License
1.7k stars 169 forks source link

[Neovim LSP]: Cant go to definition for types imported from other packages #770

Closed quantum-booty closed 2 years ago

quantum-booty commented 2 years ago

Trying to go definition on "Dictionary" result in the following error:

using System.Collections.Generic;
Dictionary<int, int> test = new();

image

Go definition works for anything else thats defined within the project.

nickspoons commented 2 years ago

@filipw OmniSharp-vim is an OmniSharp-roslyn client, but not the one being used here. The report in this issue is using the neovim LSP client.

nickspoons commented 2 years ago

@quantum-booty I am not sure why @filipw moved the issue here, I suspect he just saw "vim" and figured it would be something we know about. In this case I have no idea about the neovim LSP handling, but this looks to me like an error there. The client obviously expects a different response than it gets from the server, and doesn't handle the unexpected response well.

I don't know if there's an error with OmniSharp-roslyn's LSP response, but the actual error you are seeing is an error in the neovim LSP client, so I suggest you raise the issue with neovim. They will want to know details like the version of neovim that you're using and what OS you're on.