zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
50.47k stars 3.12k forks source link

Csharp Language Server does not work #16519

Open niteshbalusu11 opened 3 months ago

niteshbalusu11 commented 3 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

After installing the C# extension, I only get syntax highlighting. No code completion or intellisense.

I see a similar issue but its not just code highlightning https://github.com/zed-industries/zed/issues/15688

and this seems like a related issue on Linux https://github.com/zed-industries/zed/issues/14188

Environment

M3 Macbook Pro

Zed 0.148.1

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

Zed.log


hussnainwithss commented 3 months ago

im facing the same issue

psiservices-ketan-javia commented 2 months ago

+1

Moshyfawn commented 2 months ago

Could you make your settings.json available to have a look at the language server configuration? Are there language server logs available to you as well? debug: open language server logs

psiservices-ketan-javia commented 2 months ago

I was able to fix it, as suggested here.

https://github.com/zed-industries/zed/issues/8352#issuecomment-1962887464

SergoGansta777 commented 2 months ago

I was able to fix it, as suggested here.

#8352 (comment)

It didn't work for me.

2024-08-29T07:12:09.87568Z [INFO] starting language server. binary path: "/Users/sergejnehorosev/Library/Application Support/Zed/extensions/work/csharp/omnisharp-v1.39.12/OmniSharp", working directory: "/Users/sergejnehorosev/Projects/Jatoda/Jatoda", args: ["-lsp"] 2024-08-29T07:12:09.877545Z [ERROR] cannot read LSP message headers 2024-08-29T07:12:09.877633Z [ERROR] failed to start language server "omnisharp": oneshot canceled 2024-08-29T07:12:09.877702Z [ERROR] server stderr: Some("A fatal error was encountered. The library 'libhostpolicy.dylib' required to execute the application was not found in '/usr/local/share/dotnet/'.\nFailed to run as a self-contained app.\n - The application was run as a self-contained app because '/Users/sergejnehorosev/Library/Application Support/Zed/extensions/work/csharp/omnisharp-v1.39.12/OmniSharp.runtimeconfig.json' was not found.\n - If this should be a framework-dependent app, add the '/Users/sergejnehorosev/Library/Application Support/Zed/extensions/work/csharp/omnisharp-v1.39.12/OmniSharp.runtimeconfig.json' file and specify the appropriate framework.\n") 2024-08-29T07:12:09.877791Z [ERROR] Hit 4 reinstallation attempts for "omnisharp" 2024-08-29T07:12:09.877857Z [ERROR] Broken pipe (os error 32) 2024-08-29T07:12:09.877935Z [ERROR] server shut down

CleanShot 2024-08-29 at 10 19 07@2x