-
Notifications
You must be signed in to change notification settings - Fork 39
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
Xcode 11 beta 2/3 fails to compile #15
Comments
Same here, and also in stable Xcode. Catalina beta3 |
I've had the same build error on Catalina and Xcode 11 beta 3, as well as Mojave and Xcode 10.2.1. I'd be happy to open a PR but I'm not sure where to start. My build error's very similar to @ilyapuchka's, only shorter. The most important lines of the error, it seems like, are
This alludes to the problematic file being |
Filed with the fruit company as FB6699142. I'll report back if I hear anything. |
This is happening to me on Xcode 11 stable release also 😞 Do you have any news on this? |
For some unknown reason (at least to me) the `subscript(position:)` extension on `MutableCollection` where `Index == Int` was causing the swift compiler to crash with a weird `DESERIALIZATION FAILURE` error, as mentioned on pointfreeco#15. Updating the `subscript` to use `C.Index` instead of `Int` appears to make the compiler happy and successfully compile the project. My suspicion is that it somehow enables it to disambiguate between the multiple `subscript` implementations, but it's pure speculation 🔮. On our tests this seems to have fixed the issue, and since it's an equivalent definition of the subscript (even though more "precise" from a generic POV), it should cause no side effects. Fixes pointfreeco#15. 🎉
For some unknown reason (at least to me) the `subscript(position:)` extension on `MutableCollection` where `Index == Int` was causing the compilation to fail with a weird `DESERIALIZATION FAILURE` error, as mentioned on pointfreeco#15. Updating the `subscript` to use `C.Index` instead of `Int` appears to make the compiler happy and successfully compile the project. My suspicion is that it somehow enables it to disambiguate between the multiple `subscript` implementations, but it's pure speculation 🔮. On our tests this seems to have fixed the issue, and since it's an equivalent definition of the subscript (even though more "precise" from a generics POV), it should cause no side effects. Fixes pointfreeco#15. 🎉
Sorry for the noise 😇 UPDATE: After much experimentation, I think I've found a fix that works even on clean builds. It consists of making |
If this actually fixes the bug (as I hope), we should probably open/mirror the bug over at https://bugs.swift.org for better public visibility. We already have the "hardest" bit, which is a working PoC 😄. @loganmoseley do you know if it has been mirrored already? |
* Fix compiler failure in Xcode 11 For some unknown reason (at least to me) the `subscript(position:)` extension on `MutableCollection` where `Index == Int` was causing the compilation to fail with a weird `DESERIALIZATION FAILURE` error, as mentioned on #15. Updating the `subscript` to use `C.Index` instead of `Int` appears to make the compiler happy and successfully compile the project. My suspicion is that it somehow enables it to disambiguate between the multiple `subscript` implementations, but it's pure speculation 🔮. On our tests this seems to have fixed the issue, and since it's an equivalent definition of the subscript (even though more "precise" from a generics POV), it should cause no side effects. Fixes #15. 🎉 * Make `NonEmpty` conform to `Collection` in type declaration Apparently by defining `NonEmpty` as conforming to `Collection` right away in its declaration (instead of in an extension), the compilation failure seems to be fixed. Even when performing a clean build, the target now successfully compiles. 🎉 Not sure about the actual cause for this, but this definitely seems like a compiler bug (file ordering / dependency, perhaps?).
Trying to compile in Xcode 11 beta 2 result in the build error. It might be Xcode issue (and I haven't tried latest beta) but maybe you'll have an idea for a fix if it is not.
Build NonEmpty_2019-07-07T16-23-17.txt
UPD: same on beta 3
The text was updated successfully, but these errors were encountered: