dotnet / vscode-dotnet-runtime

VSCode Extension for Installing .NET via VS Code
MIT License
128 stars 229 forks source link

Error from vscode, Failed to download .NET 7.0.17~x64: #1704

Open pwihmag opened 3 months ago

pwihmag commented 3 months ago

Describe the bug.

ms-dotnettools.csdevkit requested to download the .NET Runtime. Downloading .NET version(s) 7.0.17~x64 ..............Error Failed to download .NET 7.0.17~x64: Command failed: "/home/pew/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-2.0.2/dist/install scripts/dotnet-install.sh" -InstallDir "/home/pew/.config/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/7.0.17~x64" -Version 7.0.17 -Verbose -Runtime dotnet -Architecture x64

gzip: stdin: unexpected end of file tar: Child returned status 1 tar: Error is not recoverable: exiting now dotnet_install: Error: Extraction failed

Error Failed to download .NET 7.0: .NET Acquisition Failed: Installation failed: Error: Command failed: "/home/pew/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-2.0.2/dist/install scripts/dotnet-install.sh" -InstallDir "/home/pew/.config/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/7.0.17~x64" -Version 7.0.17 -Verbose -Runtime dotnet -Architecture x64

gzip: stdin: unexpected end of file tar: Child returned status 1 tar: Error is not recoverable: exiting now dotnet_install: Error: Extraction failed

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

dotnet new console -o GrpcGreeterClient code -r GrpcGreeterClient

Expected Behavior

DONO

Exceptions & Errors (if any)

No response

.NET Install Tool Version

2.0.2

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

Linux

VS Code Version

Version: 1.87.2 Commit: 863d2581ecda6849923a2118d93a088b0745d9d6 Date: 2024-03-08T15:14:59.643Z Electron: 27.3.2 ElectronBuildId: 26836302 Chromium: 118.0.5993.159 Node.js: 18.17.1 V8: 11.8.172.18-electron.0 OS: Linux x64 6.5.0-25-generic snap

nagilson commented 3 months ago

@f-alizada Have you seen this failure before? Looks like it may be the install script.

f-alizada commented 3 months ago

Hello @nagilson, it could be the install scripts, however without more information it is difficult to say. @pwihmag In order to narrow down the problem could you please provide more information: 1 - Could you please provide info on the Linux distribution that is being used? 2 - Dotnet install scripts used with -Verbose however the logs attached does not indicate that, is there any chance to provide full logs? 3 - Does install script fail if invoked from the terminal ?

syscode1 commented 3 months ago

I'm not an Issuer, but I've experienced the same error.

Environemnt: google idx vscode (web) OS: Nix? plugin with: Oracle Developer Tools for VS code (https://open-vsx.org/extension/Oracle/oracledevtools)