dotnet / dotnet/vscode-dotnet-runtime

Failed to download .NET 8.0:

未关闭
#1,663 7 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
untriaged
主要语言
TypeScript
星标
209
派生
455
PR 合并指标
30 天内没有已合并 PR

描述

### Describe the bug.

When I load a new project on vscode, vscode try to download .NET Runtime, but return an error.

### 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.1~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.1~x64:
Command failed: "/home/lguijarro/.vscode-server/extensions/ms-dotnettools.vscode-dotnet-runtime-2.0.1/dist/install scripts/dotnet-install.sh" -InstallDir "/home/lguijarro/.vscode-server/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/8.0.1~x64" -Version 8.0.1 -Verbose -Runtime dotnet -Architecture x64
/bin/sh: 1: /home/lguijarro/.vscode-server/extensions/ms-dotnettools.vscode-dotnet-runtime-2.0.1/dist/install scripts/dotnet-install.sh: Permission denied

Error!
Failed to download .NET 8.0:
.NET Acquisition Failed: Installation failed: Error: Command failed: "/home/lguijarro/.vscode-server/extensions/ms-dotnettools.vscode-dotnet-runtime-2.0.1/dist/install scripts/dotnet-install.sh" -InstallDir "/home/lguijarro/.vscode-server/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/8.0.1~x64" -Version 8.0.1 -Verbose -Runtime dotnet -Architecture x64
/bin/sh: 1: /home/lguijarro/.vscode-server/extensions/ms-dotnettools.vscode-dotnet-runtime-2.0.1/dist/install scripts/dotnet-install.sh: Permission denied

### Reproduction Steps

I simply write on terminal this two commands:
```bash
$ dotnet new avalonia.app
$ code .
```
When load vscode show OUTPUT tab with the errors I wrote on preview input field of this from.

### Expected Behavior

Not show and Error I supuse.

### Exceptions & Errors (if any)

_No response_

### .NET Install Tool Version

2.0.1

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

Linux

### VS Code Version

1.86.1

贡献指南

打开贡献指南

调研方向

在 Linux 上使用 .NET Install Tool 2.0.1,通过先运行 `dotnet new avalonia.app` 再运行 `code .` 来复现该故障。从报告的下载错误和 `dotnet-install.sh` 权限错误开始;当扩展能够安装所请求的 .NET 8.0 runtime 且不显示报告的错误时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript, vscode
领域
devtools
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。