dotnet / dotnet/vscode-dotnet-runtime

Error acquiring .NET

Open
#1,729 4 comments 1 reaction 0 assignees View on GitHub
bug needs more info
Dominant language
TypeScript
Stars
209
Forks
455
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug.

I'm on Linux Mint 21.3, kernel version 6.5.0. My installed .net SDK:s are-

- 7.0.117 [/usr/lib/dotnet/sdk]
- 8.0.103 [/usr/lib/dotnet/sdk]

I'm getting an error whenever creating / opening a new Avalonia app. I have the Avalonia for VSCode extension installed, and I get an error when acquiring .NET.
The console output for the error:
```
AvaloniaTeam.vscode-avalonia requested to download the .NET Runtime.
Downloading .NET version(s) 8.0.3~x64 ....Error
Failed to download .NET 8.0:
Web Request to https://dot.net/v1/dotnet-install.sh Failed: n[r].split is not a function. Aborting. Please ensure that you are online.

Error
Failed to download .NET 8.0:
Web Request to https://dot.net/v1/dotnet-install.sh Failed: n[r].split is not a function. Aborting. Please ensure that you are online.

Error
Failed to download .NET 8.0.3~x64:
Command failed: "/home/boyfinn/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-2.0.3/dist/install scripts/dotnet-install.sh" -InstallDir "/home/boyfinn/.config/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/8.0.3~x64" -Version 8.0.3 -Verbose -Runtime dotnet -Architecture x64
/bin/sh: 1: /home/boyfinn/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-2.0.3/dist/install scripts/dotnet-install.sh: Permission denied

Error
Failed to download .NET 8.0:
.NET Acquisition Failed: Installation failed: Error: Command failed: "/home/boyfinn/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-2.0.3/dist/install scripts/dotnet-install.sh" -InstallDir "/home/boyfinn/.config/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/8.0.3~x64" -Version 8.0.3 -Verbose -Runtime dotnet -Architecture x64
/bin/sh: 1: /home/boyfinn/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-2.0.3/dist/install scripts/dotnet-install.sh: Permission denied
```
Any other .NET SDK project seems to work just fine.

### Please attach log file(s) here if you have any.

The log file location should be copied to your clipboard if you came from VS Code.

### Reproduction Steps

1. Install .NET SDK:s.
2. Install C# language extensions and tools for VSCode.
3. Install Avalonia for VSCode extension.
4. Try to create or open an Avalonia project with .NET version 8.0.

### Expected Behavior

Extensions should be aware of the dotnet SDK path.

### Exceptions & Errors (if any)

_No response_

### .NET Install Tool Version

v2.0.3

### Your operating system? Please provide more detail, such as the version and or distro above.

Linux

### VS Code Version

1.87.2

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.