David McFarland

Results 59 comments of David McFarland

> I've no problem with that, but don't these other packages you mention provide a resolvconf symlink/script in PATH for compatibility? (Maybe only optionally?) They typically do, but the resolve...

> I guess that could be fixed with another symlink at that path (stat() should work fine on that). Or we could try multiple paths if there are other well...

Just taking a look at this now... ``` $ OmniSharp A fatal error occurred. The required library libhostfxr.so could not be found. If this is a self-contained application, that library...

Any idea what's going wrong? I would have thought this would work: ``` $ nix shell -f '' omnisharp-roslyn dotnet-sdk_6 -c OmniSharp A fatal error occurred. The required library libhostfxr.so...

setting DOTNET_ROOT does work, but it doesn't seem to find it based on PATH.

DOTNET_ROOT seems to only be used to set the runtime, so you can set it to `dotnet-runtime`, and then you'll get: ``` $ nix shell -f '' omnisharp-roslyn -c sh...

``` diff --git a/pkgs/development/tools/omnisharp-roslyn/default.nix b/pkgs/development/tools/omnisharp-roslyn/default.nix index e2f48f7d1c3..1e23b968629 100644 --- a/pkgs/development/tools/omnisharp-roslyn/default.nix +++ b/pkgs/development/tools/omnisharp-roslyn/default.nix @@ -7,7 +7,7 @@ , stdenv }: let - inherit (dotnetCorePackages) sdk_6_0; + inherit (dotnetCorePackages) sdk_6_0 runtime_6_0; in...

so if you set DOTNET_ROOT to .net6 runtime, but add .net sdk 7 to your path, omnisharp can't find it?

> Correct, it cannot because it uses DOTNET_ROOT to find the .NET SDK itself Are you sure about that? Because just setting DOTNET_ROOT isn't enough for it to find the...

I take a look at .net 7. In the meantime, I started working on some basic tests: https://github.com/corngood/nixpkgs/commit/71265892af2596a116a7d8919dacbce514c0fdbf It may be impossible to cover .net 7 right now, but if...