Code Monkey home page Code Monkey logo

Comments (3)

MFDeAngelo avatar MFDeAngelo commented on June 5, 2024 1

Ahh... yeah... I was using it twice. I initially tried nvim-lspconfig. When I couldn't get it to work, I switched to omnisharp-vim. Since it started working I didn't bother to remove nvim-lspconfig. I probably should have removed it anyways. Months later, I thought it was just part of the setup.

I added let g:OmniSharp_server_use_net6 = 1, reinstalled the server, and synced my packer plugins, which worked! Thanks so much for your help!

from omnisharp-vim.

nickspoons avatar nickspoons commented on June 5, 2024

Hi @MFDeAngelo,

Yes there is an OmniSharp-vim log (or rather, OmniSharp-vim writes the OmniSharp-roslyn log to this location), open it with :OmniSharpOpenLog.

However from your config I think your main problem is that you are using 2 different versions of the OmniSharp-roslyn server at once, so it's going to be confusing working out which one has worked previously. In your config you have OmniSharp-vim installed, but you also use nvim-lspconfig to configure a different instance of OmniSharp-roslyn.

I recommend you choose one or the other - either OmniSharp-vim or neovim LSP with nvim-lspconfig.


Having said that, working with both .NET Framework and dotnet6 can be a bit of a challenge to do smoothly.

The key is that for dotnet (non-Framework) projects, you should use the "net6" builds of OmniSharp-roslyn, so with OmniSharp-vim you do this by setting let g:OmniSharp_server_use_net6 = 1. For .NET Framework projects you should use the .NET Framework server build, so use let g:OmniSharp_server_use_net6 = 0. The tricky bit is that OmniSharp-vim will try to install these servers to the same location (%LocalAppData%\omnisharp-vim\omnisharp-roslyn) so if you switch from one setting to the other, you'll need to re-install the server each time.

So if you want to continue with OmniSharp-vim rather than nvim-lsp, try starting a project and then check your log for errors. If the project is failing to load you're most likely using the wrong server build. In which case use the appropriate let g:OmniSharp_server_use_net6 = 0/1, install the associated server with :OmniSharpInstall and restart.

from omnisharp-vim.

nickspoons avatar nickspoons commented on June 5, 2024

OK great to hear

from omnisharp-vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.