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
[SR-6394] fatal error: X is not yet implemented: file Foundation/~~~, line ## #4056
Comments
Comment by Sergo Beruashvili (JIRA) @belkadan @phausler What do you think about marking all the NSUnimplemented functions with @available(*, unavailable, message: "Not available on non-Darwin platforms") |
@parkera @millenomi, would you accept a PR that adds an |
@spevans only after we remove as many as possible before the end of 5.0. |
Is that primarily to avoid wasted effort? It's something we're planning on doing regardless. |
One thing about this - we have to be careful about it being an availability thing in scenarios like this, totally contrived, example:
{{ else { c() }}} {{}}}
|
Bleh. I give up on JIRA's formatting. But you get the idea. 🙂 |
I'd only apply it to the |
Ok, so basically top-level stuff only? The thing I wanted to avoid was some kind of "viral unavailability", where one lower level function being unavailable causes a bunch of higher level stuff that may call it only in specific scenarios to become unavailable always. I guess discovering if there are any key functions in that path would be a useful side effect. |
We've done this as part of https://bugs.swift.org/browse/SR-10347. |
Environment
Linux w/ Swift 4
Additional Detail from JIRA
md5: ca18b9d655db6313731c5a10e8514cce
duplicates:
Issue Description:
It would be really nice if these issues threw a compiler warning rather than a runtime error. I'm trying to deploy a heroku app that works fine on Mac, and builds fine on linux with no warnings, but crashes at runtime. The experience would be much nicer if I didn't have to build, run, and discover each missing part of Foundation on Server.
The text was updated successfully, but these errors were encountered: