Help with c# OmniSharp lsp configuration in ubuntu #36530
theArianit
started this conversation in
Language Support
Replies: 2 comments
-
That better go into https://github.com/zed-extensions/csharp/ as not that many developers deal with CLR-related things in this repo. |
Beta Was this translation helpful? Give feedback.
0 replies
-
My configuration is as follows, it works fine
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am following the zed docs to configure the omnisharp lsp, I also downloaded
omnisharp-linux-x64.tar.gz
and did run it. I installed mono-complete for it to be able to run it. But when I open Zed it gives me this error`Language server omnisharp:
initializing server omnisharp, id 2
-- stderr--
Could not locate MSBuild instance to register with OmniSharp.`
And the log says:
2025-08-19T23:56:41+02:00 INFO [lsp] starting language server process. binary path: "/home/arianit/.local/share/zed/node/node-v22.5.1-linux-x64/bin/node", working directory: "/home/arianit/.config/zed", args: ["/home/arianit/.local/share/zed/languages/json-language-server/node_modules/vscode-langservers-extracted/bin/vscode-json-language-server", "--stdio"] 2025-08-19T23:56:41+02:00 ERROR [lsp] cannot read LSP message headers 2025-08-19T23:56:41+02:00 ERROR [lsp] Server reset connection for a request "initialize" id 0 2025-08-19T23:56:41+02:00 ERROR [lsp] Shutdown request failure, server omnisharp (id 2): server shut down 2025-08-19T23:56:41+02:00 ERROR [lsp] Broken pipe (os error 32) 2025-08-19T23:56:41+02:00 ERROR [project::lsp_store] Failed to start language server "omnisharp": Error { context: "initializing server omnisharp, id 2", source: "Server reset the connection", } 2025-08-19T23:56:41+02:00 ERROR [project::lsp_store] server stderr: Could not locate MSBuild instance to register with OmniSharp.
This is the settings.json file
"enable_language_server": true, "lsp": { "omnisharp": { "binary": { "path": "/home/arianit/.omnisharp/run", "arguments": ["optional", "additional", "args", "-lsp"] } } }
I also have the dotnet SDK installed on my machine, if that's important.
Am I doing it wrong? How should I do it the right way?
Thanks in advance for any help.
Beta Was this translation helpful? Give feedback.
All reactions