-
Notifications
You must be signed in to change notification settings - Fork 7.2k
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
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
Write-Progress incorrectly shows 100% until 1% of the task is completed #18850
Labels
Resolution-Fixed
The issue is fixed.
Comments
wi-fr
added
the
Needs-Triage
The issue is new and needs to be triaged by a work group.
label
Dec 26, 2022
Good find; let me boil it down to the core problem:
# !! Shows the whole bar filled in, as if -PercentComplete 100 had been passed.
# !! If $PSStyle.Progress.View = 'Classic', nothing shows at all.
Write-Progress -Activity Test -Status '0% complete' -PercentComplete 0; Start-Sleep 3
# OK: any value greater than 0 (1 - 100) - only the proportion reflecting the percentage is filled in.
Write-Progress -Activity Test -Status '1% complete' -PercentComplete 1; Start-Sleep 3 |
I found and fixed this as part of this PR: https://github.com/PowerShell/PowerShell/pull/18735/files#diff-cbda13b2a2d772c7dc93249087ce0e6b94bfdc7d022ab9eea9a752610674ab71R427
|
SteveL-MSFT
removed
the
Needs-Triage
The issue is new and needs to be triaged by a work group.
label
Dec 28, 2022
ghost
added
Resolution-Fixed
The issue is fixed.
and removed
In-PR
Indicates that a PR is out for the issue
labels
Jan 25, 2023
🎉This issue was addressed in #18735, which has now been successfully released as Handy links: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
Steps to reproduce
Actual behavior
Error details
No error
Environment data
Visuals
No response
The text was updated successfully, but these errors were encountered: