question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`Write-Progress` not cleaned up unless `-Complete` is explicitly specified

See original GitHub issue

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues to ensure it has not already been reported.
  • I have read the troubleshooting guide.
  • I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
  • I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.

Summary

image

If you do a -complete it will go away. In normal PS it will go away at end of execution and return to prompt, so the “return to prompt” handling that happens in progress must not be happening in our host.

PowerShell Version

Preview

Visual Studio Code Version

Insiders

Extension Version

Preview

Steps to Reproduce

Write-Progress 'test'

Hit enter a few times

Visuals

No response

Logs

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
JustinGrotecommented, Feb 16, 2022

@andschwa I wonder if this is a PSHost thing that has to be reimplemented, since a lot of that went away.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Write-Progress display - How to get rid of it when complete?
The issue is that the completed status bar remains on the screen after completion. #Some code... While( -NOT $Script:RecordSetG.EoF ) { #...Some ...
Read more >
Powershell Write-Progress and Adding Timer - Stack Overflow
This seems to be an issue of VSCode only. When I run this simplified script in the console, the progress bar disappears automatically, ......
Read more >
Progress Bar in PowerShell - Wit IT
In order to clean up our output a little, comment out our initial Write-Host that tells us which integer we're currently on by...
Read more >
Progress Report: Full Guide | Slite.com
Writing a progress report can be this easy. Use our template to describe the progress of any project. Collaborate, discuss, & decide together...
Read more >
Manual Updates to Clarify Skilled Nursing Facility (SNF ... - CMS
The regulations under 409.32(a) and (b) do not specify that an assistant ... Even if full recovery or medical improvement is not possible, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found