Title: Write-Progress -Completed requires an -Activity argument, even though it is pointless · Issue #15252 · PowerShell/PowerShell · GitHub
Open Graph Title: Write-Progress -Completed requires an -Activity argument, even though it is pointless · Issue #15252 · PowerShell/PowerShell
X Title: Write-Progress -Completed requires an -Activity argument, even though it is pointless · Issue #15252 · PowerShell/PowerShell
Description: To hide a progress bar explicitly, you call Write-Progress -Completed Doing so currently requires that an -Activity argument be passed as well, even though that shouldn't be necessary, given that such an argument is only relevant for dis...
Open Graph Description: To hide a progress bar explicitly, you call Write-Progress -Completed Doing so currently requires that an -Activity argument be passed as well, even though that shouldn't be necessary, given that s...
X Description: To hide a progress bar explicitly, you call Write-Progress -Completed Doing so currently requires that an -Activity argument be passed as well, even though that shouldn't be necessary, given th...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/15252
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Write-Progress -Completed requires an -Activity argument, even though it is pointless","articleBody":"To hide a progress bar explicitly, you call `Write-Progress -Completed`\r\n\r\nDoing so currently requires that an `-Activity` argument be passed as well, even though that shouldn't be necessary, given that such an argument is only relevant for _displaying_ the progress bar, not when _hiding_ it.\r\n\r\nTherefore, `Write-Progress -Completed` by itself should be sufficient to hide a progress bar (potentially combined with `-Id` to disambiguate, should multiple ones have been created).\r\n\r\n## Steps to reproduce\r\n\r\n```powershell\r\nforeach ($i in 1..10) { Write-Progress $i -Activity foo; start-sleep -ms 100 }\r\nWrite-Progress -Completed\r\n'Done'\r\n```\r\n\r\n## Expected behavior\r\n\r\nThe progress bar should display, then disappear, followed by output `'Done'`.\r\n\r\n## Actual behavior\r\n\r\n`Write-Progress -Completed` unexpectedly prompts for an `-Activity` parameter value.\r\n\r\n## Environment data\r\n\r\n```none\r\nPowerShell Core 7.2.0-preview.5\r\n```\r\n","author":{"url":"https://github.com/mklement0","@type":"Person","name":"mklement0"},"datePublished":"2021-04-16T18:56:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/15252/PowerShell/issues/15252"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f32ff52a-50b7-7094-6d34-c217025a917d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D4B2:244BB6:C4709:106FA8:6A558634 |
| html-safe-nonce | e494069ef16b10772c6a3f09c162d6f534cd4553338597ca6d0958387dc912f7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENEIyOjI0NEJCNjpDNDcwOToxMDZGQTg6NkE1NTg2MzQiLCJ2aXNpdG9yX2lkIjoiMTg5MDA2ODA3OTEzODE0NTg0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f2468a42298666b49dcca8b757cbaa2716c131fc2e5227263003a9d21048b325 |
| hovercard-subject-tag | issue:860087282 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/15252/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3a47a76c7d70cb84aae6a22cd474d6b4729bd743840324ca0bd5cf047eda02ed/PowerShell/PowerShell/issues/15252 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3a47a76c7d70cb84aae6a22cd474d6b4729bd743840324ca0bd5cf047eda02ed/PowerShell/PowerShell/issues/15252 |
| og:image:alt | To hide a progress bar explicitly, you call Write-Progress -Completed Doing so currently requires that an -Activity argument be passed as well, even though that shouldn't be necessary, given that s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mklement0 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3215163789b3dc58dba97bd78a30c20c949f477f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width