microsoft / microsoft/aspire

A python app gets exit code 1 when started from VS Code

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

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Describe the bug

The exit code of a python app is reported as 1, even if it actually exits with 0. This causes a dependant to not be started. See the linked repo.

Only in Windows and when starting debugging from VSCode.
On Linux (WSL) it works from VS Code. Also works ok in Windows, if I start from a regular terminal with "aspire run".

It seems similar with #12965 but that had a closing workaround targeting specifically other OS and exit code.

### Expected Behavior

_No response_

### Steps To Reproduce

https://github.com/octavian-cacina-gotomaxx/AspirePyStarter

### Exceptions (if any)

_No response_

### .NET Version info

.NET SDK:
Version: 10.0.103
Commit: c2435c3e0f
Workload version: 10.0.100-manifests.df162a5d
MSBuild version: 18.0.11+c2435c3e0

OS Name: Windows
OS Version: 10.0.26200
OS Platform: Windows
RID: win-x64

### Anything else?

Aspire 13.1.2
Aspire VS Code Extension 1.0.3

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.