dotnet / vscode-dotnet-runtime

VSCode Extension for Installing .NET via VS Code
MIT License
138 stars 256 forks source link

dotnet 8 sdk downloading failed #1718

Open NullDict opened 6 months ago

NullDict commented 6 months ago

Describe the bug.

When I open an avalonia project, it occurs. I have seen several same issues, but I don't think the problem is solved in plugin 2.0.2. As you can see, error happened again. I'm pretty sure the internet connection is ok, The plugin installed .net 7 successfully before install .net 8.

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~x64 ....Error Failed to download .NET 8.0: Web Request to https://dot.net/v1/dotnet-install.ps1 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.ps1 Failed: n[r].split is not a function. Aborting. Please ensure that you are online.

Reproduction Steps

Install avalonia plugin Create an avalonia xplat project , then open the fold in vscode.

Expected Behavior

It should use the .net sdk in C:\Program Files\dotnet directly or download new sdk successfully.

Exceptions & Errors (if any)

No response

.NET Install Tool Version

v2.0.2

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

Windows

VS Code Version

1.87.2(system setup)

ghost commented 6 months ago

Same issue on the Fedora 39

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/alevykh/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-2.0.2/dist/install scripts/dotnet-install.sh" -InstallDir "/home/alevykh/.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: line 1: /home/alevykh/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-2.0.2/dist/install scripts/dotnet-install.sh: Permission denied

Error Failed to download .NET 8.0: .NET Acquisition Failed: Installation failed: Error: Command failed: "/home/alevykh/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-2.0.2/dist/install scripts/dotnet-install.sh" -InstallDir "/home/alevykh/.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: line 1: /home/alevykh/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-2.0.2/dist/install scripts/dotnet-install.sh: Permission denied