Skip to content

Language server error: omnisharp #8

@ringods

Description

@ringods

Hello,

After installing this extension in Zed, I get an error reported in the status bar at the bottom trying to run Omnisharp. When I click on this, I get an untitled editor window with the following info:

Language server error: omnisharp

oneshot canceled
-- stderr--
A fatal error occurred. The required library libhostfxr.dylib could not be found.
If this is a self-contained application, that library should exist in [/Users/ringods/Library/Application Support/Zed/extensions/work/csharp/omnisharp-v1.39.13/].
If this is a framework-dependent application, install the runtime in the global location [/usr/local/share/dotnet/x64] or use the DOTNET_ROOT environment variable to specify the runtime location or register the runtime location in [/etc/dotnet/install_location].

Here some output regarding the pats mentioned above:

$ which dotnet
/usr/local/share/dotnet/dotnet
$ cat /etc/dotnet/install_location
/usr/local/share/dotnet/x64
$ cat /etc/dotnet/install_location_arm64
/usr/local/share/dotnet

and

$ dotnet --list-sdks --list-runtimes
8.0.409 [/usr/local/share/dotnet/sdk]

The dotnet SDK is installed via this Homebrew cask:

https://github.com/isen-ng/homebrew-dotnet-sdk-versions

I am running on an Apple M1 machine, so the arm64 location should be in use.

Am I missing something in my installation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions