-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
Resolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-Interactive-Consolethe console experiencethe console experience
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
Note: This is a regression from Windows PowerShell and affects both the Minimal and Classic views (selectable via $PSStyle.Progress.View)
$arr = 1..10
$arr |
ForEach-Object {
[int] $percentComplete = ($_ / $arr.Count) * 100
Write-Progress -Activity Test -Status "$percentComplete% complete" -PercentComplete $percentComplete
# !! Without sleeping for a while, the progress display stops updating after the FIRST call.
# Start-Sleep -Milliseconds 200
}
Start-Sleep 5 # Ensure that the progress bar stays visible for a while.Expected behavior
The progress bar should show 100% and stay visible for 5 seconds.
Actual behavior
The progress bar shows 10% - that is, only the first call took effect.
Error details
No response
Environment data
PowerShell Core 7.3.1Visuals
No response
Metadata
Metadata
Assignees
Labels
Resolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-Interactive-Consolethe console experiencethe console experience