Skip to content

Forward all errors that translate to .cancelled from document diagnostics request #1386

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

Merged

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jun 1, 2024

We were only forwarding CancellationError but depending on when cancellation happens, we would get SKDError.cancelled, which we would translate to empty diagnostics, causing the test to fail.

…ostics request

We were only forwarding `CancellationError` but depending on when cancellation happens, we would get `SKDError.cancelled`, which we would translate to empty diagnostics, causing the test to fail.
@ahoppen ahoppen requested a review from benlangmuir as a code owner June 1, 2024 05:03
@ahoppen ahoppen requested review from bnbarham and hamishknight June 1, 2024 05:03
@ahoppen
Copy link
Member Author

ahoppen commented Jun 1, 2024

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Jun 1, 2024

@swift-ci Please test Windows

@ahoppen ahoppen merged commit be10867 into swiftlang:main Jun 1, 2024
3 checks passed
@ahoppen ahoppen deleted the fix-diagnostic-cancelled-test-failure branch June 1, 2024 13:18
Copy link
Contributor

@hamishknight hamishknight left a comment

Choose a reason for hiding this comment

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

LGTM

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.

3 participants