Skip to content

handle diags that happen during repl code completion #24918

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

marcrasi
Copy link

This fixes the test/IDE/complete_tf_195.swift failure that occurred during the merge, by:

(This deletes test/IDE/complete_tf_195.swift because it's named test/IDE/repl_complete_with_error.swift in the upstream patch.)

@marcrasi marcrasi requested a review from dan-zheng May 20, 2019 18:55
@marcrasi
Copy link
Author

@swift-ci please test tensorflow

Copy link
Contributor

@dan-zheng dan-zheng left a comment

Choose a reason for hiding this comment

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

Nice!


// Reset the error state because it's only relevant to the code that we just
// processed, which now gets thrown away.
Ctx.Diags.resetHadAnyError();
Copy link

Choose a reason for hiding this comment

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

Very nice!

@marcrasi marcrasi merged commit d6d966a into swiftlang:tensorflow May 20, 2019
@marcrasi marcrasi deleted the apply-correct-autocomplete-fix branch May 20, 2019 21:38
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