-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Write-Progress incorrectly shows 100% until 1% of the task is completed #18850
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
Labels
Resolution-Fixed
The issue is fixed.
Comments
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
|
🎉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: