dotnet / dotnet/vscode-dotnet-runtime

.NET Runtime Install Tool reports error

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

Description

# Describe the bug

I get a red error in the status bar, claiming: `Error acquiring .NET!`
Clicking that error, brings me to the output pane of the .NET Runtime showing the following log.
The install script `$HOME/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-1.7.2/dist/install scripts/dotnet-install.sh` has permission `640`, i.e. is not executable.

This error popped up only today after years of silent operation of vscode.

## **Please attach log file(s) here if you have any:**
```
Downloading the .NET Runtime.
Downloading .NET version(s) 6.0.22 .... Error!
Please ensure that you are online: Request to https://dot.net/v1/dotnet-install.sh Failed: n[r].split is not a function

Still downloading .NET version(s) 6.0.22 ... Error!
Please ensure that you are online: Request to https://dot.net/v1/dotnet-install.sh Failed: n[r].split is not a function

Still downloading .NET version(s) 6.0.22 ... Error!
Failed to download .NET 6.0.22:
Command failed: "/homes/rhaschke/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-1.7.2/dist/install scripts/dotnet-install.sh" -InstallDir "/homes/rhaschke/.config/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/6.0.22" -Version 6.0.22 -Runtime dotnet
/bin/sh: 1: /homes/rhaschke/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-1.7.2/dist/install scripts/dotnet-install.sh: Permission denied

Error!
.NET Acquisition Failed: Installation failed: Error: Command failed: "/homes/rhaschke/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-1.7.2/dist/install scripts/dotnet-install.sh" -InstallDir "/homes/rhaschke/.config/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/6.0.22" -Version 6.0.22 -Runtime dotnet
/bin/sh: 1: /homes/rhaschke/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-1.7.2/dist/install scripts/dotnet-install.sh: Permission denied
```

**Further technical details**
- Your VSCode Version
Version: 1.82.1
Commit: 6509174151d557a81c9d0b5f8a5a1e9274db5585
Date: 2023-09-08T08:41:36.199Z
Electron: 25.8.0
ElectronBuildId: 23503258
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Linux x64 6.2.0-32-generic

- The version of the extension that's on your machine
1.7.2

- Your operating system details
Ubuntu Jammy (22.04)

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.