dotnet / dotnet/vscode-dotnet-runtime

Linux Distro Check Fails for Manjaro / Other Distros Without Certain Information

Open
#2,633 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
209
Forks
455
PR merge metrics
No merged PRs in 30d

Description

Referenced by: https://github.com/microsoft/vscode-dotnettools/issues/2963

When trying to install, the user may see:
```
Cancelled Installation of .NET notAnAcquisitionRequest-global~x64.
We are unable to detect the distro or version of your machine
Cancelled Installation of .NET notAnAcquisitionRequest-global~x64.
We are unable to detect the distro or version of your machine ... does /etc/os-release or /usr/lib/os-release exist?
Cancelled Installation of .NET undefined.
An active-support version of dotnet couldn't be found. Discovered versions: []
Cancelled Installation of .NET notAnAcquisitionRequest-global~x64.
We are unable to detect the distro or version of your machine
Cancelled Installation of .NET notAnAcquisitionRequest-global~x64.
We are unable to detect the distro or version of your machine ... does /etc/os-release or /usr/lib/os-release exist?
Cancelled Installation of .NET undefined.
An active-support version of dotnet couldn't be found. Discovered versions: []
Cancelled Installation of .NET 8.0.100-global~x64.
We are unable to detect the distro or version of your machine
Cancelled Installation of .NET 8.0.100-global~x64.
We are unable to detect the distro or version of your machine ... does /etc/os-release or /usr/lib/os-release exist?

Error : (DotnetAcquisitionFinalError)
```
on Manjaro instead of an unsupported error that should link to https://learn.microsoft.com/en-us/dotnet/core/install/linux (though the none en based version).

We depend on VERSION_ID being in the file but Manjaro does not provide that. Instead, it has BUILD_ID=rolling.

I'll need to improve the logic to handle this and other potential scenarios where NAME or VERSION_ID is not provided. There are probably others out there besides Manjaro - but this will just lead us to give the unsupported message.

I'll need to fix this error. However, we don't really support doing the install for you on Majaro yet. Once I fix the bug, it will at least tell you what to do to proceed, which is defined in https://learn.microsoft.com/en-us/dotnet/core/install/linux. Though I don't think we even have a specific page for Manjaro it should help.

notAnAcquisitionRequest should also probably not be visible which might be another bug.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.