Skip to content

[API notes] CTFontManagerError is not a valid Error at this time. #4104

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
Aug 8, 2016

Conversation

jrose-apple
Copy link
Contributor

CoreText is below Foundation in the framework stack, so its error enum uses a CFStringRef constant as its domain instead of an NSString. The importer doesn't know how to handle that yet, so for now, just don't import CTFontManagerError as a first-class error type.

rdar://problem/27722004


Before merging this pull request to apple/swift repository:

  • Test pull request on Swift continuous integration.

Triggering Swift CI

The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:

Smoke Testing

Platform Comment
All supported platforms @swift-ci Please smoke test
All supported platforms @swift-ci Please smoke test and merge
OS X platform @swift-ci Please smoke test OS X platform
Linux platform @swift-ci Please smoke test Linux platform

A smoke test on macOS does the following:

  1. Builds the compiler incrementally.
  2. Builds the standard library only for macOS. Simulator standard libraries and
    device standard libraries are not built.
  3. lldb is not built.
  4. The test and validation-test targets are run only for macOS. The optimized
    version of these tests are not run.

A smoke test on Linux does the following:

  1. Builds the compiler incrementally.
  2. Builds the standard library incrementally.
  3. lldb is built incrementally.
  4. The swift test and validation-test targets are run. The optimized version of these
    tests are not run.
  5. lldb is tested.

Validation Testing

Platform Comment
All supported platforms @swift-ci Please test
All supported platforms @swift-ci Please test and merge
OS X platform @swift-ci Please test OS X platform
OS X platform @swift-ci Please benchmark
Linux platform @swift-ci Please test Linux platform

Lint Testing

Language Comment
Python @swift-ci Please Python lint

Note: Only members of the Apple organization can trigger swift-ci.

CoreText is below Foundation in the framework stack, so its error enum
uses a CFStringRef constant as its domain instead of an NSString. The
importer doesn't know how to handle that yet, so for now, just don't
import CTFontManagerError as a first-class error type.

rdar://problem/27722004
@jrose-apple
Copy link
Contributor Author

jrose-apple commented Aug 8, 2016

@slavapestov Mind "reviewing"? (More looking for confirmation that my analysis makes sense and matches yours than the actual review, but I will put you down as reviewer when cherry-picking to swift-3.0-branch.)

@swift-ci Please test OS X platform

@slavapestov
Copy link
Contributor

Looks good.

Anything we want to change in the ClangImporter, for example assert or diagnose when this occurs?

@jrose-apple
Copy link
Contributor Author

That's not a bad idea, but I think it's okay not to pull that part into the 3.0 branch. I'll clone the Radar to follow up on it later.

@jrose-apple jrose-apple merged commit 449f4e4 into swiftlang:master Aug 8, 2016
@jrose-apple jrose-apple deleted the CTFontManagerError branch August 8, 2016 18:13
@jrose-apple
Copy link
Contributor Author

(We definitely can't assert because users have no control over this.)

jrose-apple added a commit to jrose-apple/swift that referenced this pull request Aug 8, 2016
…iftlang#4104)

CoreText is below Foundation in the framework stack, so its error enum
uses a CFStringRef constant as its domain instead of an NSString. The
importer doesn't know how to handle that yet, so for now, just don't
import CTFontManagerError as a first-class error type.

rdar://problem/27722004
(cherry picked from commit 449f4e4)
phausler pushed a commit to phausler/swift that referenced this pull request Aug 8, 2016
…iftlang#4104)

CoreText is below Foundation in the framework stack, so its error enum
uses a CFStringRef constant as its domain instead of an NSString. The
importer doesn't know how to handle that yet, so for now, just don't
import CTFontManagerError as a first-class error type.

rdar://problem/27722004
kateinoigakukun added a commit that referenced this pull request Aug 31, 2022
Resolve conflicts with upstream `main`
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.

2 participants