Skip to content
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

Write-Output doesn't write output from within profile scripts #663

Closed
daviwil opened this issue Apr 7, 2017 · 1 comment
Closed

Write-Output doesn't write output from within profile scripts #663

daviwil opened this issue Apr 7, 2017 · 1 comment
Milestone

Comments

@daviwil
Copy link
Contributor

daviwil commented Apr 7, 2017

Somehow Write-Output isn't writing output correctly when run from inside user profile scripts. Write-Verbose seems to work correctly though.

/cc @DonPwrShellHunt

@daviwil daviwil added this to the April 2017 milestone Apr 7, 2017
@daviwil daviwil modified the milestones: April 2017, May 2017 May 8, 2017
@daviwil daviwil modified the milestones: 1.1.0, May 2017 May 17, 2017
@daviwil
Copy link
Contributor Author

daviwil commented May 17, 2017

Fixed this for tomorrow's update!

daviwil added a commit to daviwil/PowerShellEditorServices that referenced this issue May 17, 2017
This change causes both errors and object output to be written to the
host when profiles are being loaded.  Users who had issues in their
profile scripts thought that the scripts weren't being loaded when in
fact there were errors not being displayed.  Also, users using
Write-Output in their profile scripts did not see that output.  This
change makes the PSES host consistent with the PowerShell ConsoleHost,
writing both forms of output when loading profile scripts.

Resolves PowerShell/vscode-powershell#689
Resolves PowerShell/vscode-powershell#663
daviwil added a commit to PowerShell/PowerShellEditorServices that referenced this issue May 17, 2017
This change causes both errors and object output to be written to the
host when profiles are being loaded.  Users who had issues in their
profile scripts thought that the scripts weren't being loaded when in
fact there were errors not being displayed.  Also, users using
Write-Output in their profile scripts did not see that output.  This
change makes the PSES host consistent with the PowerShell ConsoleHost,
writing both forms of output when loading profile scripts.

Resolves PowerShell/vscode-powershell#689
Resolves PowerShell/vscode-powershell#663
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant