★ wanayoo — archive 1999 https://github.com/PowerShell/PowerShellEditorServices/pull/1022Nouvelle recherche | Portail wanayoo
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

Catch stream exceptions for some Debug Adapter stability. #1022

Merged

Conversation

@TylerLeonhardt
Copy link
Member

@TylerLeonhardt TylerLeonhardt commented Sep 6, 2019

This helps protect from a crash we were seeing with the "Start without debugging" feature in VS Code.

@TylerLeonhardt TylerLeonhardt changed the title Catch stream exceptions for some Debug Adapter stability Catch stream exceptions for some Debug Adapter stability. Sep 6, 2019
Copy link
Collaborator

@SeeminglyScience SeeminglyScience left a comment

LGTM! One question

e is IOException)
{
// We catch this exception for when the DebugAdapter disconnects while still processing a message.
logger.WriteException("Tried to write to the output stream but it was already closed & broken.", e);

This comment has been minimized.

@SeeminglyScience

SeeminglyScience Sep 9, 2019
Collaborator

This probably happens decently often, do we want to make this a verbose message? If you can't include an exception in the verbose message then never mind.

This comment has been minimized.

@TylerLeonhardt

TylerLeonhardt Sep 10, 2019
Author Member

verbose doesn't allow an exception but I did change this to WriteHandledException!

@PowerShell PowerShell deleted a comment Sep 10, 2019
@TylerLeonhardt TylerLeonhardt merged commit 95cb12e into PowerShell:master Sep 16, 2019
8 checks passed
8 checks passed
Codacy/PR Quality Review Up to standards. A positive pull request.
Details
PowerShellEditorServices-CI Build #PR-1022-20190910.01 had test failures
Details
PowerShellEditorServices-CI (PowerShell 5.1 | Windows 10) PowerShell 5.1 | Windows 10 succeeded
Details
PowerShellEditorServices-CI (PowerShell 6 | Ubuntu) PowerShell 6 | Ubuntu succeeded
Details
PowerShellEditorServices-CI (PowerShell 6 | Windows 10) PowerShell 6 | Windows 10 succeeded
Details
PowerShellEditorServices-CI (PowerShell 6 | macOS) PowerShell 6 | macOS succeeded
Details
PowerShellEditorServices-secret-scan #PR-1022-20190910.01 succeeded
Details
license/cla All CLA requirements met.
Details
@TylerLeonhardt TylerLeonhardt deleted the TylerLeonhardt:catch-stream-exceptions branch Sep 16, 2019
TylerLeonhardt added a commit to TylerLeonhardt/PowerShellEditorServices that referenced this pull request Sep 16, 2019
…#1022)

* catch stream exceptions for Debug Adapter

* Use WriteHandledException
TylerLeonhardt added a commit that referenced this pull request Sep 17, 2019
…1022) (#1026)

* catch stream exceptions for Debug Adapter

* Use WriteHandledException
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.