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

Ensure that errors are written to the console when debugging #1230

Merged
merged 2 commits into from Mar 12, 2020

Conversation

rjmholt
Copy link
Collaborator

@rjmholt rjmholt commented Mar 11, 2020

Fixes PowerShell/vscode-powershell#2534.

The PowerShell thread writing errors was never awaited and was being starved it seems. We now wait for the error writing to finish

@rjmholt rjmholt requested review from SeeminglyScience and TylerLeonhardt and removed request for SeeminglyScience March 11, 2020 23:17
@TylerLeonhardt
Copy link
Member

Codacy Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 1
- Added 1
           

Complexity increasing per file
==============================
- src/PowerShellEditorServices/Services/PowerShellContext/PowerShellContextService.cs  1
         

See the complete overview on Codacy

@@ -1948,7 +1954,7 @@ internal void WriteOutput(string outputString, bool includeNewLine)
}
}

private void WriteExceptionToHost(RuntimeException e)
private Task WriteExceptionToHostAsync(RuntimeException e)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@TylerLeonhardt TylerLeonhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM though it's scary looking

@rjmholt rjmholt merged commit 575932d into PowerShell:master Mar 12, 2020
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

Successfully merging this pull request may close these issues.

Nested errors in debugging not shown in console
2 participants