Skip to content

Write-Output does not display #151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
anwather opened this issue Apr 20, 2016 · 11 comments
Closed

Write-Output does not display #151

anwather opened this issue Apr 20, 2016 · 11 comments
Labels
Issue-Bug A bug to squash.
Milestone

Comments

@anwather
Copy link
Contributor

Example code below - nothing appears in the debug console until I set and disable a breakpoint. Write-Host works fine.
Function Get-MyProcess
{

$x = Get-Process -Name TabTip
Write-Output "$($x.ProcessName)"
}

Get-MyProcess

@anwather
Copy link
Contributor Author

Bug recording.pptx

@rkeithhill
Copy link
Contributor

We believe we know what the issue is. A fix for this should be forthcoming in a 0.5.1 release.

@daviwil daviwil added the Issue-Bug A bug to squash. label Apr 25, 2016
@daviwil daviwil added this to the 0.6.0 milestone Apr 25, 2016
@daviwil
Copy link
Contributor

daviwil commented Apr 25, 2016

Yep! This is something caused by some recent changes in VS Code's debugger interface. We're pretty sure that this will be fixed in 0.6.0 (to be released in a week or less).

@daviwil
Copy link
Contributor

daviwil commented May 11, 2016

Just verified that this is fixed for 0.6.0. I'll close this bug once the update has shipped.

@daviwil daviwil removed the Needs: Fix Verification Please verify the fix for us! label May 11, 2016
@daviwil
Copy link
Contributor

daviwil commented May 13, 2016

0.6.0 is now released! Let me know if you run into any further trouble.

@daviwil daviwil closed this as completed May 13, 2016
@dsmeltz
Copy link

dsmeltz commented Sep 6, 2016

v0.7.2

I'm using two Write-Output calls immediately after calling Invoke-RestMethod. The two statements output to the console as expected in ISE. When running the same script in VS Code, the two Write-Ouput statements don't output anything unless I set a break point on the first one and step over them one at a time. These two statements are at the end of the file.

Here's a simple test:

Write-Output "Line 1"
$x = 1
Write-Output "Line 2"

@daviwil
Copy link
Contributor

daviwil commented Sep 6, 2016

Hey @dsmeltz, this is a known issue that we are investigating. You can subscribe to this issue to be notified of future updates: PowerShell/PowerShellEditorServices#138

@ghost
Copy link

ghost commented Sep 14, 2016

v0.7.2
Any luck with the investigation?
Thanks!

@daviwil
Copy link
Contributor

daviwil commented Sep 14, 2016

I've got a better way in mind to solve this problem, going to try and make it happen for the next big release (0.8.0)!

@ghost
Copy link

ghost commented Sep 17, 2016

When can we expect the next big release?
Thanks!

@daviwil
Copy link
Contributor

daviwil commented Sep 17, 2016

I'm shooting for the first couple weeks of October.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug A bug to squash.
Projects
None yet
Development

No branches or pull requests

4 participants