Search

Write-Progress output is not displayed properly when multiple ISE tabs are open in PowerShell 3.0 by DougBB

Active

5
0
Sign in
to vote
Type: Bug
ID: 778597
Opened: 2/5/2013 11:32:24 AM
Access Restriction: Public
0
Workaround(s)
1
User(s) can reproduce this bug
Under certain circumstances, when Write-Progress is used in Windows PowerShell ISE and a new tab is opened, the Write-Progress output does not display properly. Closing tabs makes it appear.
Details (expand)
How often does this happen?
Always Happens

Have you seen this problem before in this product?

No, this is new to the most recent version
Reproduction Steps
1. Run "powershell_ise.exe -noprofile"
2. Paste the following code in the script pane:
    $i = 1..100
    $i | % {
        write-progress -Activity "Testing Output" -Status $_ -PercentComplete $_
        sleep 1
    }
3. Note the progress bar works properly
4. Open a new tab by pressing Ctrl+T
5. Switch back to the first tab
6. Note the progress bar continues to works properly
7. Close the second tab
8. Open a new tab by pressing Ctrl+T
9. Switch back to the first tab and note the progress bar is missing
10. Close the third tab
11. Note that the progress bar displays properly again
Expected Results
The progress bar from Write-Progress is displayed regardless of the state of the tabs in the ISE.
File Attachments
File Name Submitted By Submitted On File Size  
PowerShell-Write-Progress-bug.PNG 2/5/2013 32 KB
Sign in to post a comment.
Posted by Stephen Mills on 2/20/2013 at 11:02 PM
This is very annoying when you have something that takes hours to run and you lose the progress bar. I hope they will fix this at some point before V4.
Sign in to post a workaround.