Skip to content

Unable to see Write-Host output #363

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
ssaari opened this issue Dec 8, 2016 · 6 comments
Closed

Unable to see Write-Host output #363

ssaari opened this issue Dec 8, 2016 · 6 comments

Comments

@ssaari
Copy link

ssaari commented Dec 8, 2016

Please fill in these details so that we can help you!

System Details

  • Operating system name and version: Caption : Microsoft Windows Server 2012 R2 Standard
    CSDversion :
    BuildNumber : 9600
    OSArchitecture : 64-bit
  • VS Code version: 1.7.2
  • PowerShell extension version: 0.7.2
  • Output from $PSVersionTable:
    Name Value

PSVersion 4.0
WSManStackVersion 3.0
SerializationVersion 1.1.0.1
CLRVersion 4.0.30319.42000
BuildVersion 6.3.9600.17400
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0}
logs.zip

PSRemotingProtocolVersion 2.2

Evaluate $PSVersionTable in PowerShell and paste the output here

Issue Description

I am experiencing a problem with seeing any output from scripts. In a script that Write-Host, it does not display the text in either the PowerShell Output or Debug Output. I've tried several color themes in case output color equals background color. If I set a debug, have a line that is just a variable that should display its value when run, I can hover and see the value. However it does not output, nor do any variables show up in the Variables window.

Attached Logs

Follow the instructions in the README
about capturing and sending logs.

@daviwil
Copy link
Contributor

daviwil commented Dec 8, 2016

Hey @ssaari, can you try the preview build I posted here and see if it resolves your issue?

@ssaari
Copy link
Author

ssaari commented Dec 8, 2016

Yes, sir, @daviwil, it sure did. Thank you!

@ssaari ssaari closed this as completed Dec 8, 2016
@daviwil
Copy link
Contributor

daviwil commented Dec 8, 2016

Glad to hear it! I'll be shipping an official update with that fix early next week.

@ssaari
Copy link
Author

ssaari commented Dec 9, 2016

Hi,

I had started VS Code (the 0.7.10) in another RPD session, got kicked off, and was in another session when I logged back in. Same logon but different session. I can't open VS Code from its shortcut or from File Explorer. Same environment as at the beginning of this thread. Here's a Get-Process. I guess I will pipe this to Stop-Process.
DF_PS> gps code

Handles NPM(K) PM(K) WS(K) VM(M) CPU(s) Id ProcessName


389      46    97972     135256   480   171.34   6924 Code
203      22    23720      33072   200     2.84  20956 Code
145      12     3484       9188   153     0.05  21324 Code
638      53    33664      93280   530    64.30  28976 Code
204      19    24740      36236   199     3.08  31576 Code
168      17    20688      30168   192     1.64  37052 Code
212      14     9716      12304   147     0.09  38268 CodeHelper

@daviwil
Copy link
Contributor

daviwil commented Dec 9, 2016

This might be caused by the fact that code tries to reuse existing windows if you open another instance with the same workspace path. This could be an instance where the process starts up and then tries to load the previous session then it realizes there's already another window with that session so it tries to activate it. Through some weird interaction with Windows the window might be lost and not able to be activated on the desktop.

If you see this again, might be worth letting the VS Code team know about it:

https://github.com/Microsoft/vscode/issues

@ssaari
Copy link
Author

ssaari commented Dec 9, 2016

okay, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants