Skip to content

write-progress does not work outside of a loop in PS 6.0 (RC) on Mac OS #5741

@nowakca

Description

@nowakca

If I embed a write-progress inside of a for loop, it works properly.
But if I'm trying to use write-progress to indicate progress within just a sequence of commands in a script... no dice.

In Windows Powershell, I use this frequently so I can have the master progress bar show which phase of the script I'm in, and the sub-progress bars show progress within those phases (usually looped)

Steps to reproduce

write-progress "something"
start-sleep 5

Expected behavior

I should see "something" show up in a progress bar.

Actual behavior

I see nothing in PS 6.  (If I use PS 5.1 or earlier in Windows, it works perfectly)

Environment data

> $PSVersionTable

Name                           Value                                                                                                       
----                           -----                                                                                                       
PSVersion                      6.0.0-rc.2                                                                                                  
PSEdition                      Core                                                                                                        
GitCommitId                    v6.0.0-rc.2                                                                                                 
OS                             Darwin 17.3.0 Darwin Kernel Version 17.3.0: Thu Nov  9 18:09:22 PST 2017; root:xnu-4570.31.3~1/RELEASE_X8...
Platform                       Unix                                                                                                        
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

    Issue-BugIssue has been identified as a bug in the productOS-LinuxOS-macOSResolution-No ActivityIssue has had no activity for 6 months or moreWG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions