Skip to content

[Bug]: Terminal Logger: Misaligned duration in long-running tasks #9562

Description

@ladipro

Issue Description

When the project build duration crosses the 10 (100, 1000, ...) second mark, the position of the task name does not compensate and appears misaligned or overwritten.

image

Steps to Reproduce

Build a project with a long-running task:

<Project>
  <Target Name='Build'>
    <Exec Command="ping -n 1111 127.0.0.1" />
  </Target>
</Project>

Expected Behavior

When crossing orders of magnitude, the task name shifts accordingly to make space for more digits of duration.

Build (9.0s)
Build (99.0s)
Build (999.0s)

Actual Behavior

When crossing orders of magnitude, the position of the task name stays the same.

Build (9.0s)
Build(99.0s)
Buil(999.0s)

Analysis

No response

Versions & Configurations

MSBuild version 17.10.0-dev-23619-01+5cf78584f

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugneeds-triageHave yet to determine what bucket this goes in.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions