Skip to content
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-11694] functionBuilder regression! #54102

Closed
swift-ci opened this issue Nov 1, 2019 · 6 comments
Closed

[SR-11694] functionBuilder regression! #54102

swift-ci opened this issue Nov 1, 2019 · 6 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself result builders Feature: Result builders source compatibility type checker Area → compiler: Semantic analysis

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Nov 1, 2019

Previous ID SR-11694
Radar rdar://problem/56983010
Original Reporter mikeisaev (JIRA User)
Type Bug
Status Resolved
Resolution Done

Attachment: Download

Environment

MacOS 10.15.1 (19B88)
Xcode 11.2 (11B52)
Apple Swift version 5.1.2 (swiftlang-1100.0.278 clang-1100.0.33.9)
Target: x86_64-apple-darwin19.0.0

Additional Detail from JIRA
Votes 7
Component/s Compiler
Labels Bug, FunctionBuilder, SourceCompatibility, TypeChecker
Assignee None
Priority Medium

md5: 277327ff6f38dd4b4195743839c8d446

Issue Description:

Can't compile my projects with Swift 5.1.2(Xcode 11.2) which compiles fine with Swift 5.1(Xcode 11.1)

I worked on https://github.com/MihaelIsaev/UIKitPlusExample yesterday and today, and few hours ago I updated my Xcode from 11.1 to 11.2 and started getting compiler error `Type of expression is ambiguous without more context` in function builders.

Thanks God I have a second macbook with Xcode 11.1 and I checked that the same project still compiles fine on it.

I tried to fix my code somehow to make it work on Swift 5.1.2 and Xcode 11.2 and had no luck, but figured out an interesting thing.

Please take a look at these screenshots below.

1. This code won't compile with Swift 5.1.2 while it compiles fine with Swift 5.1

2. But it compiles fine with Swift 5.1.2 another way

So it looks like this new Swift 5.1.2 (Xcode 11.2) feature described in Xcode's Release Notes broke compiler and now it won't work even with not complex expressions.

I also have a HTML library which uses function builders and projects based on it also won't compile in Xcode 11.2. So my work totally paralysed. I'm downloading Xcode 11.1 to continue working.

Any chances that it could be fixed in Swift 5.2 or Swift 5.1.3?

UPD: this is Xcode bug which is still not fixed in Xcode 11.3.1

@swift-ci
Copy link
Collaborator Author

swift-ci commented Nov 1, 2019

Comment by Mikhail Isaev (JIRA)

Hmmm... ok, new info. I've just installed Xcode 11.1 and it builds my projects perfectly even with command line tools from 11.2, but Xcode 11.2 won't build them showing me `Type of expression is ambiguous without more context` even with command line tools from 11.1. Does it means that the problem is in the new Xcode itself not in Swift 5.1.2? If so then where I should file a bug?

@beccadax
Copy link
Contributor

beccadax commented Nov 4, 2019

I reproduced this failure with the Swift in Xcode 11.2 (beta 2, at least; haven't installed GM yet). However, it compiles fine in the 11/1 master snapshot.

@swift-ci
Copy link
Collaborator Author

swift-ci commented Nov 7, 2019

Comment by Mikhail Isaev (JIRA)

Xcode 11.2.1 have no fix for it. Is there any chance that it'll be fixed in Xcode 11.2.2?

@swift-ci
Copy link
Collaborator Author

Comment by Mikhail Isaev (JIRA)

Xcode 11.3beta(11C24b) have no fix for it.

@swift-ci
Copy link
Collaborator Author

Comment by Mikhail Isaev (JIRA)

Xcode 11.3.1 Still NO FIX![]( Common Apple)

@DougGregor
Copy link
Member

This was fixed in Swift 5.2

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself result builders Feature: Result builders source compatibility type checker Area → compiler: Semantic analysis
Projects
None yet
Development

No branches or pull requests

3 participants