dotnet / dotnet/vscode-dotnet-runtime
VS Code Extension failing to install .NET 7.0.9
- Dominant language
- TypeScript
- Stars
- 209
- Forks
- 455
- PR merge metrics
- No merged PRs in 30d
Description
**Repro steps:**
1. I'm using VS Code version 1.81.0 on Ubuntu 23.04. Checking .NET versions I get the following:
dotnet --list-runtimes
Microsoft.AspNetCore.App 7.0.9 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 7.0.9 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]
dotnet --list-sdks
7.0.109 [/usr/lib/dotnet/sdk]
2. The problem started occurring just after updating my software, including VS Code and a bunch of other stuff.
3. Open a .NET project, and I see a message saying that it is downloading .NET version 7.0.9, then fails after about 10 seconds with the following error.
**Extension Version:** 1.0.0
**Error Message:** .NET Acquisition Failed: Installation failed: Error: Command failed: "/home/anonymous/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-1.6.0/dist/install scripts/dotnet-install.sh" -InstallDir "/home/anonymous/.config/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/7.0.9" -Version 7.0.9 -Runtime dotnet
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
dotnet_install: Error: Extraction failed
**Error Stack:** Error: .NET Acquisition Failed: Installation failed: Error: Command failed: "/home/anonymous/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-1.6.0/dist/install scripts/dotnet-install.sh" -InstallDir "/home/anonymous/.config/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/7.0.9" -Version 7.0.9 -Runtime dotnet
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
dotnet_install: Error: Extraction failed
at /home/anonymous/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-1.6.0/dist/extension.js:2:4766
Contributor guide
Assessment
This issue has not been assessed yet.