fsprojects / fsharp-language-server

Other
218 stars 37 forks source link

"You must install or update .NET to run this application." #115

Open arialdomartini opened 1 year ago

arialdomartini commented 1 year ago

On Arch Linux I installed

yay -S fsharp dotnet-sdk-bin fsharp-language-server

This installed:

❯ yay -Q | grep "dotnet|fsharp"
dotnet-host 7.0.5.sdk105-1
dotnet-runtime-bin 7.0.5.sdk203-1
dotnet-sdk-bin 7.0.5.sdk203-1
dotnet-targeting-pack-bin 7.0.5.sdk203-1
fsharp 10.2.3-4
fsharp-language-server 0.1.27-1```

When I run fsharp-language-server I get the following error:

You must install or update .NET to run this application.

App: /usr/bin/fsharp-language-server
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '3.0.0' (x64)
.NET location: /usr/share/dotnet

The following frameworks were found:
  7.0.5 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Learn about framework resolution:
https://aka.ms/dotnet/app-launch-failed

To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=3.0.0&arch=x64&rid=arch-x64

I'm not sure what is missing.

arialdomartini commented 1 year ago

Is

yay -S dotnet-sdk-3.0

required?

faldor20 commented 1 year ago

That's because the published version only supports 3.0 my fork supports up to 5.0 or 6.0 but for fsharp 7.0 just use fsautocomplete. I don't work actively on this extension because I don't use f# much anymore.