Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question csharp-ls not working with unity

Discussion in 'Code Editors & IDEs' started by matidfk, Feb 19, 2023.

  1. matidfk


    Jun 19, 2020
    So I've been recently trying to setup neovim for working with unity. I installed csharp-ls as the language server, which I tested with a regular dotnet project, which worked fine.

    The problem is, when I try to use this for a Unity project (even a brand new one) it seems that it does not properly load assembly references or something, as I get errors such as "Could not find type or namespace System". I also could not get omnisharp-roslyn to work in neovim
    viewnono1219 likes this.
  2. Dakamakat


    Oct 27, 2022
    Hi , i ve setup my system for neovim development with unity on windows with csharp-ls using this simple bat script
    Code (Boo):
    1. wt "nvim %~1 %2"
    script (NOTE : wt - windows terminal i think it can be anything what can run nvim)

    and choose it as external editor like this upload_2023-6-2_0-51-7.png

    the only minus is you should regenerate project files on new script added by VS studio or some other editor
    like this , hope it helps)