-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[Bug]: Terminal logger formatting issue when displaying running targets #8781
Comments
This may already be solved with nightlies - we had a width-calculation issue that has been fixed. Can you try to reproduce with preview5 nightlies if you get a chance? |
I suppose we could - but if we leave it in seconds isn't that motivation for the runtime team to make their build faster? (I kid, of course :) ) |
Do you want me to file a separate issue? I would love to be able to build runtime in less than 60 seconds, maybe the new msbuild can make that happen ;-) |
I went ahead and created a new issue from your comment/request. |
I don't think this is solved yet--I believe I messed up truncation-to-fit-in-window when I colorized TF in #8715. |
The root cause of dotnet#8781 is that the optimize-output-by-skipping- identical-characters logic is not aware of escape sequences, so it goes horribly awry when the replacing line differs after the first escape sequence. Instead, apply the previous logic only if there are no escape sequences; if there are, replace the entire line. If this proves to cause too much flicker or perform slowly, we could implement escape-sequence-aware truncation, length, and comparison, but we can wait for feedback to that effect.
Should be fixed by #8907. |
Issue Description
I tried to add
/tl
to the build in dotnet/runtime repo. For the most part it works great - I like this.But in some cases the "active" targets (the lines which are updating with times) get mangled a little bit:
This is on Windows, running in Windows Terminal under powershell (.NET 7 pwsh).
Steps to Reproduce
Run something like:
.\build.cmd Clr+Libs /tl
in dotnet/runtime repo.Expected Behavior
Each target shows exactly one time.
Actual Behavior
Some targets sometimes show the time twice (with only the second one updating)
Analysis
No response
Versions & Configurations
No response
The text was updated successfully, but these errors were encountered: