Skip to content

Catch exceptions within completion handler - #1935

Merged
Andy Jordan (andyleejordan) merged 1 commit into
mainfrom
andschwa/handle-failed-completions
Oct 24, 2022
Merged

Andy Jordan (andyleejordan) merged 1 commit into
mainfrom
andschwa/handle-failed-completions

Conversation

@andyleejordan

Copy link
Copy Markdown
Member

We'll still see the same error in the log, but as a warning and not as an exception bubbled up over LSP that causes some clients, like Kate, to crash. We can't do anything about PowerShell's completion failing.

Fixes #1926.

@andyleejordan
Andy Jordan (andyleejordan) requested a review from a team October 21, 2022 20:55
@ghost ghost added Area-IntelliSense Issue-Bug A bug to squash. labels Oct 21, 2022
@andyleejordan
Andy Jordan (andyleejordan) force-pushed the andschwa/handle-failed-completions branch 5 times, most recently from ade9d58 to 3f22ad4 Compare October 21, 2022 22:45

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM with one suggestion

@andyleejordan
Andy Jordan (andyleejordan) force-pushed the andschwa/handle-failed-completions branch 2 times, most recently from 620e2f4 to 0948131 Compare October 24, 2022 21:38
We'll still see the same error in the log, but as a warning and not as
an exception bubbled up over LSP that causes some clients, like Kate, to
crash. We can't do anything about PowerShell's completion failing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Null reference exceptions when trying to complete variable names

2 participants