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 exceptions within completion handler #1935

Merged
merged 1 commit into from
Oct 24, 2022

Conversation

andyleejordan
Copy link
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 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 andyleejordan force-pushed the andschwa/handle-failed-completions branch 5 times, most recently from ade9d58 to 3f22ad4 Compare October 21, 2022 22:45
@andyleejordan andyleejordan enabled auto-merge (squash) October 21, 2022 22:46
Copy link
Collaborator

@SeeminglyScience SeeminglyScience left a comment

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 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.
@andyleejordan andyleejordan force-pushed the andschwa/handle-failed-completions branch from 0948131 to fb62522 Compare October 24, 2022 22:49
@andyleejordan andyleejordan merged commit 5df82eb into main Oct 24, 2022
@andyleejordan andyleejordan deleted the andschwa/handle-failed-completions branch October 24, 2022 23:13
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