Skip to content
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

Can't get it working in Vim, but my VSCode works #1811

Closed
Nazeehe opened this issue May 26, 2020 · 3 comments
Closed

Can't get it working in Vim, but my VSCode works #1811

Nazeehe opened this issue May 26, 2020 · 3 comments

Comments

@Nazeehe
Copy link

Nazeehe commented May 26, 2020

Hey all,

Thank you for the time you spend on this project! Really appreciate it.

I've been having a really hard time getting a reliable C# dev experience working with NeoVim. I am focusing on Unity3D at the moment. I've tried many approaches:

  • Omnisharp-vim with CoC for completion. Never worked. Even running command functions provided by Omnisharp-vim does nothing. Silent.
  • Coc with Coc-Omnisharp. Same. Nothing works. :(
  • Coc with explicit LSP entry in config for Omnisharp. Kinda works if my Unity3D project is small. On my main project I am using at work, it crashes.
  • Decided to give vim-lsp a try the other day just to see, nope. It doesn't work.

I fire up VSCode as a comparison, and that works. Not super reliable, but certainly works where NeoVim doesn't. I even pointed NeoVim plugins at the same omnisharp.exe that VSCode uses, nope... doesn't work.

What wizardry is VSCode doing? Based on my understanding of LSP as a protocol, it shouldn't matter. VSCode is just a client same as CoC, etc.

Any ideas on how I can figure this out?

@easbarba
Copy link

related #1777

@nickspoons
Copy link
Member

This seems like the wrong place to ask - you are asking lots of different questions with no details necessary to answer them.

OmniSharp-roslyn has several different modes it can run in, the relevant ones being stdio and LSP. LSP mode is the newest and I am not sure it's entirely stable? From what I've read, Coc-Omnisharp uses LSP, as will vim-lsp and the neovim built-in LSP client.

VSCode and OmniSharp-vim use the stdio mode.

I can help you with OmniSharp-vim, if you open an issue over there. Please include your environment details, and an OmniSharp-roslyn log will be helpful (in Vim, get this with :OmniSharpOpenLog).

@Nazeehe
Copy link
Author

Nazeehe commented May 26, 2020

This seems like the wrong place to ask - you are asking lots of different questions with no details necessary to answer them.

OmniSharp-roslyn has several different modes it can run in, the relevant ones being stdio and LSP. LSP mode is the newest and I am not sure it's entirely stable? From what I've read, Coc-Omnisharp uses LSP, as will vim-lsp and the neovim built-in LSP client.

VSCode and OmniSharp-vim use the stdio mode.

I can help you with OmniSharp-vim, if you open an issue over there. Please include your environment details, and an OmniSharp-roslyn log will be helpful (in Vim, get this with :OmniSharpOpenLog).

Thank for the reply. As I was not sure which path to take, it didn't feel useful to provide a dump of all the info I gathered first. I am looking for pointers that would help me provide the relevant info.

The LSP vs stdio is what I was looking for. That helps. I will file an issue with you with the relevant logs/etc. Appreciate it.

Thanks!

@Nazeehe Nazeehe closed this as completed May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants