Open atipls opened 6 months ago
I worked around a similar issue by modifying the content of /etc/dotnet/install_location
from "/usr/local/share/dotnet/x64/" to "/usr/local/share/dotnet/"
I worked around a similar issue by modifying the content of
/etc/dotnet/install_location
from "/usr/local/share/dotnet/x64/" to "/usr/local/share/dotnet/"
This solved the problem of OmniSharp not starting aswell, so not sure if this as .NET bug or a Zed one, I think the best solution would be if OmniSharp was packaged as a self-contained app, so that it doesn't depend on the system's .NET install
I am using Fedora, but the fix described is not applicable because the path is already correct. Still, Omnisharp does not work.
Zed: v0.143.6 (Zed) OS: Linux Wayland fedora 40 Memory: 31.3 GiB Architecture: x86_64
The C# extension is installed and the Omnisharp is downloaded to:
~/.local/share/zed/extensions/work/csharp/omnisharp-v1.39.11
dotnet
--version 9.0.100-preview.5.24307.1
/usr/lib64/dotnet
is the installed path
/etc/dotnet/install_location
content is /usr/lib64/dotnet
The log includes the following:
OmniSharp.MSBuild.Discovery.Providers.SdkInstanceProvider: OmniSharp requires the .NET 6 SDK or higher be installed. Please visit https://dotnet.microsoft.com/download/dotnet/6.0 to download the .NET SDK.
Check for existing issues
Describe the bug / provide steps to reproduce it
When opening any C# project, Zed tries to download OmniSharp a few times, fails because OmniSharp fails to launch, gives up, meaning no language server features are available. This machine has a standard .NET Core setup for macOS, with a few sdks and runtimes installed, and the project is targeting the latest (8.0.201 as of writing)
Environment
Zed: v0.123.6 (Zed) OS: macOS 14.3.1 Memory: 8 GiB Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.If you only need the most recent lines, you can run the
zed: open log
command palette action to see the last 1000.