Skip to content

[4.0] Improve reporting of @objc inference issues from the Swift runtime #10528

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
merged 1 commit into from
Jun 23, 2017
Merged

[4.0] Improve reporting of @objc inference issues from the Swift runtime #10528

merged 1 commit into from
Jun 23, 2017

Conversation

kubamracek
Copy link
Contributor

@kubamracek kubamracek commented Jun 23, 2017

Extend Swift runtime issue reporting for @objc inference to include details about the declaration of the method (that is missing the @objc annotation) and a suggested fix-it. This changes the ABI of RuntimeErrorDetails, so we're also bumping the version.

• Explanation: Swift runtime issues for Obj-C implicit entrypoint are not pointing to the declaration where the @objc attribute needs to be added.
• Scope of Issue: Users who have bugs due to implicit Obj-C entrypoints might now easily find out where is the declaration that is missing the @objc attribute.
• Radar: rdar://problem/32933687
• Risk: Low. We're only touching the codepaths that are triggered when Swift generates a runtime issue.
• Testing: I verified that with the patch, LLDB sees the note properly (and the LLDB PR has a test for it).

…10406)

* Extend Swift runtime issue reporting for @objc inference to include details about the declaration of the method (that is missing the @objc annotation) and a suggested fix-it. This changes the ABI of RuntimeErrorDetails, so we're also bumping the version.

* Update SwiftObject.mm
@kubamracek
Copy link
Contributor Author

@swift-ci please test

Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

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

LGTM

@AnnaZaks AnnaZaks merged commit 34d69b0 into swiftlang:swift-4.0-branch Jun 23, 2017
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