Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unexpected control chracter output from dotnet run #45002

Open
Dirk-Peters-BF opened this issue Nov 21, 2024 · 4 comments
Open

unexpected control chracter output from dotnet run #45002

Dirk-Peters-BF opened this issue Nov 21, 2024 · 4 comments
Labels
untriaged Request triage from a team member

Comments

@Dirk-Peters-BF
Copy link

Describe the bug

Unexpected ASCII control characters are inserted in output when running "dotnet run" for a console project.

To Reproduce

docker run --rm -it mcr.microsoft.com/dotnet/sdk:9.0 bash
mkdir hello
cd hello
dotnet new console
dotnet run
apt update && apt install less
dotnet run | less

expected result:
less shows "Hello, World!"

actual result:
less shows: "ESC]9;4;3;ESC\ESC]9;4;0;ESC\Hello, World!"

Further technical details

.NET SDK:
 Version:           9.0.100
 Commit:            59db016f11
 Workload version:  9.0.100-manifests.3068a692
 MSBuild version:   17.12.7+5b8665660

Runtime Environment:
 OS Name:     debian
 OS Version:  12
 OS Platform: Linux
 RID:         linux-x64
 Base Path:   /usr/share/dotnet/sdk/9.0.100/

.NET workloads installed:
There are no installed workloads to display.
Configured to use loose manifests when installing new manifests.

Host:
  Version:      9.0.0
  Architecture: x64
  Commit:       9d5a6a9aa4

.NET SDKs installed:
  9.0.100 [/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 9.0.0 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 9.0.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  Not set

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download
  • The same characters are written when output is redirected to file
  • behavior is not reproducible with dotnet 8 sdk
  • same behavior can be observed on windows
  • with dotnet 9 sdk "dotnet restore" progress output can be observed, which was not observed with dotnet 8 sdk -> possible reason?
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Request triage from a team member label Nov 21, 2024
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@KalleOlaviNiemitalo
Copy link
Contributor

This bug is being tracked in dotnet/msbuild#10998.

@Dirk-Peters-BF
Copy link
Author

Thanks.
That explains why I did not find anything in "runtime" or here ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

2 participants