dotnet / dotnet/vscode-dotnet-runtime
vscode for mac os sonoma silicon m1 and Avalonia UI project folder - Error Failed to download .NET 8.0:
- Dominant language
- TypeScript
- Stars
- 209
- Forks
- 455
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug.
I hope everyone is okay.
When opening VSCode, with the folder of an Avalonia UI Coss Platform project, vscode tries to install net 8, although the net 8 sdk is already installed on my mac. So I always get the error message below:
AvaloniaTeam.vscode-avalonia requested to download the .NET Runtime.
Downloading .NET version(s) 8.0.3~arm64 ....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. Abortion. 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. Abortion. Please ensure that you are online.
Error
Failed to download .NET 8.0.3~arm64:
Command failed: "/Users/username/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-2.0.3/dist/install scripts/dotnet-install.sh" -InstallDir "/Users/username/Library/Application Support/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/8.0.3~arm64" -Version 8.0.3 -Verbose -Runtime dotnet -Architecture arm64
/bin/sh: /Users/username/.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: "/Users/username/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-2.0.3/dist/install scripts/dotnet-install.sh" - InstallDir "/Users/username/Library/Application Support/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/8.0.3~arm64" -Version 8.0.3 -Verbose -Runtime dotnet -Architecture arm64
/bin/sh: /Users/username/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-2.0.3/dist/install scripts/dotnet-install.sh: Permission denied
The net8 sdk is installed in the /usr/local/share/dotnet/sdk/8.0.203 folder
How do I solve this problem?
### Please attach log file(s) here if you have any.
AvaloniaTeam.vscode-avalonia requested to download the .NET Runtime.
Downloading .NET version(s) 8.0.3~arm64 ....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~arm64:
Command failed: "/Users/alexpimenta/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-2.0.3/dist/install scripts/dotnet-install.sh" -InstallDir "/Users/alexpimenta/Library/Application Support/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/8.0.3~arm64" -Version 8.0.3 -Verbose -Runtime dotnet -Architecture arm64
/bin/sh: /Users/alexpimenta/.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: "/Users/alexpimenta/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-2.0.3/dist/install scripts/dotnet-install.sh" -InstallDir "/Users/alexpimenta/Library/Application Support/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/8.0.3~arm64" -Version 8.0.3 -Verbose -Runtime dotnet -Architecture arm64
/bin/sh: /Users/alexpimenta/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-2.0.3/dist/install scripts/dotnet-install.sh: Permission denied
### Reproduction Steps
opening vscode
### Expected Behavior
try install net 8 automatically
### Exceptions & Errors (if any)
AvaloniaTeam.vscode-avalonia requested to download the .NET Runtime.
Downloading .NET version(s) 8.0.3~arm64 ....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~arm64:
Command failed: "/Users/alexpimenta/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-2.0.3/dist/install scripts/dotnet-install.sh" -InstallDir "/Users/alexpimenta/Library/Application Support/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/8.0.3~arm64" -Version 8.0.3 -Verbose -Runtime dotnet -Architecture arm64
/bin/sh: /Users/alexpimenta/.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: "/Users/alexpimenta/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-2.0.3/dist/install scripts/dotnet-install.sh" -InstallDir "/Users/alexpimenta/Library/Application Support/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/8.0.3~arm64" -Version 8.0.3 -Verbose -Runtime dotnet -Architecture arm64
/bin/sh: /Users/alexpimenta/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-2.0.3/dist/install scripts/dotnet-install.sh: Permission denied
### .NET Install Tool Version
.NET version(s) 8.0.3~arm64
### Your operating system? Please provide more detail, such as the version and or distro above.
OSX / Darwin / Mac
### VS Code Version
Version: 1.87.2 (Universal) Commit: 863d2581ecda6849923a2118d93a088b0745d9d6 Date: 2024-03-08T15:21:31.043Z (3 wks ago) Electron: 27.3.2 ElectronBuildId: 26836302 Chromium: 118.0.5993.159 Node.js: 18.17.1 V8: 11.8.172.18-electron.0 OS: Darwin arm64 23.4.0
Contributor guide
Assessment
This issue has not been assessed yet.