Skip to content

Reporting progress on more than 9 activities results in inscrutable progress bars #7507

Description

@alx9r

Steps to reproduce

$numProgressBars = 10

foreach ($i in 1..100)
{
    $id = $i % $numProgressBars
    Write-Progress $id -Id $id -PercentComplete $i
    sleep -Milliseconds 50
}

Expected behavior

I expected the progress bars to behave nicely like this, except showing 10 activities:

repro-8-activities

This is a capture of $numProgressBars=8.

Actual behavior

Instead, the progress bars seem to jump around like this:

repro-10-activities

This is a capture $numProgressBars=10

Environment data

> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      6.1.0-preview.4
PSEdition                      Core
GitCommitId                    6.1.0-preview.4
OS                             Microsoft Windows 6.3.9600 
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions