csharp-language-server icon indicating copy to clipboard operation
csharp-language-server copied to clipboard

Stuck at loading solution in Unity Projects

Open rpopic2 opened this issue 1 year ago • 1 comments

Stuck at loading solution in Unity Projects. Create new Unity project, and open with nvim with lspconfig setup. Can be reproduced from version 0.12.0 or above.

rpopic2 avatar Mar 07 '25 02:03 rpopic2

I haven't had any issues with unity projects so far. For the authors sake, you should provide some more info:

  • Unity version
  • Unity project setup:
    • Are you using assembly definitions? If so paste them here.
    • What compile flags are set in the project settings?

These are important things which change how unity behaves and impacts how csharp-ls will handle loading the solution. If you haven't solved it, you should try tinkering with these settings a little bit yourself to see if you can make it work. Running dotnet restore will often resolve issues with loading or missing dependencies.

Skyppex avatar Jul 21 '25 08:07 Skyppex