Skip to content

Improve reporting of @objc inference issues from the Swift runtime #10406

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 2 commits into from
Jun 23, 2017
Merged

Improve reporting of @objc inference issues from the Swift runtime #10406

merged 2 commits into from
Jun 23, 2017

Conversation

kubamracek
Copy link
Contributor

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.

An appropriate LLDB pull request will follow.

…etails 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.
@kubamracek
Copy link
Contributor Author

LLDB PR: apple/swift-lldb#215

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, thank you!

.replacementText = "@objc "
};
RuntimeErrorDetails::Note note = {
.description = "Method declaration; add '@objc' here",
Copy link
Member

Choose a reason for hiding this comment

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

I would prefer

add '@objc' to expose this Swift declaration to Objective-C

@kubamracek
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - 957c813
Test requested by - @kubamracek

@swift-ci
Copy link
Contributor

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - 957c813
Test requested by - @kubamracek

@DougGregor
Copy link
Member

Thank you!

@kubamracek kubamracek merged commit 8cb95b8 into swiftlang:master 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