microsoft / microsoft/aspire

`aspire new` hangs on package install

Open
#11,595 0 comments 0 reactions 0 assignees View on GitHub
area-templates
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

Calling `aspire new` hangs on the call to `dotnet new install` regardless of the template selected.

```
[17:32:09] [dbug] DotNetCliRunner: dotnet(15686) stdout: }
Enter the project name (aspire-file-based-test): devtunnels
Enter the output path: (./devtunnels): .
Searching for available project template versions...
🧊 Getting templates...
[17:32:18] [dbug] DotNetCliRunner: Running dotnet with args: new install Aspire.ProjectTemplates@9.6.0-preview.1.25472.8 --force --nuget-source
dotnet9
[17:32:18] [dbug] DotNetCliRunner: Started dotnet with PID: 15895
[17:32:18] [dbug] DotNetCliRunner: Starting to forward stream with identifier 'stdout' on process '15895' to logger
[17:32:18] [dbug] DotNetCliRunner: Waiting for dotnet process to exit with PID: 15895
[17:32:18] [dbug] DotNetCliRunner: Starting to forward stream with identifier 'stderr' on process '15895' to logger
[17:32:19] [dbug] DotNetCliRunner: dotnet(15895) stdout: The following template packages will be installed:
[17:32:19] [dbug] DotNetCliRunner: dotnet(15895) stdout: Aspire.ProjectTemplates::9.6.0-preview.1.25472.8
[17:32:19] [dbug] DotNetCliRunner: dotnet(15895) stdout:
```

Some notes:

- `dotnet new install` process is still active while `aspire new` is hung.
- `fs_usage -f filesys` shows filesystem activity from the process while it's hung. Lots of reads on the `/Users/captainsafia/.dotnet/TelemetryStorageService` file, not sure if that is related.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.