razzmatazz / csharp-language-server

Roslyn-based LSP language server for C#
MIT License
584 stars 38 forks source link

Emacs LSP: Unrecognized command or argument 'csharp-ls' #176

Closed Empyreans closed 2 months ago

Empyreans commented 2 months ago

Hello, I am using Spacemacs (Emacs) with LSP and csharp-language-server.

It was working fine before, now after a long time I've updated my packages, and for some reason, csharp-ls does not work anymore. I am aware that this might not be the right place to ask, but I'm wondering about what steps I can undertake on this side to properly debug this issue on this side.

After entering my C# workspace in Emacs, the lsp server with csharp-lsp immediately exits with stderr output:

Unrecognized command or argument 'csharp-ls'.
Process csharp-ls stderr finished

The next step was to check how csharp-ls is even used.

I can verify that dotnet tool list --global returns that the current version of csharp-ls is installed. I also verified that I have the latest Dot Net SDK. (8.0.300+)

When I run csharp-ls -s SOLUTION_FILE nothing happens, I don't get any response or return value. Should I get an output?

How can I verify that it's not a problem of csharp-ls ?

Empyreans commented 2 months ago

I think this can be closed, as this is most likely related to a recent change to lsp-mode, see the issue I raised there: https://github.com/emacs-lsp/lsp-mode/issues/4491