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-14213] Failed to produce diagnostic for expression — SwiftUI #56591

Closed
odmir opened this issue Feb 14, 2021 · 3 comments
Closed

[SR-14213] Failed to produce diagnostic for expression — SwiftUI #56591

odmir opened this issue Feb 14, 2021 · 3 comments
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself diagnostics QoI Bug: Diagnostics Quality of Implementation failed to produce diagnostic Bug → internal error: Failed to produce diagnostic for expression SwiftUI Flag: Related to (but not an issue with) SwiftUI type checker Area → compiler: Semantic analysis

Comments

@odmir
Copy link

odmir commented Feb 14, 2021

Previous ID SR-14213
Radar rdar://problem/74356736
Original Reporter @odmir
Type Bug
Status Resolved
Resolution Done
Environment

Xcode 12.5 beta (12E5220o), macOS Big Sur 11.2 (20D64)

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, DiagnosticsQoI, TypeChecker
Assignee @odmir
Priority Medium

md5: 99a1badd1ef1615ab3f562770fa7c975

Issue Description:

Got this with this simple example:

import SwiftUI

struct Experiment: View {
    var body: some View { // <-- Failed to produce diagnostic for expression...
        HStack {
            Slider(value: <#T##Binding<BinaryFloatingPoint>#>, in: <#T##ClosedRange<BinaryFloatingPoint>#>, label: <#T##() -> _#>)
        }
    }
}

I also tested with the trunk development snapshot from January 24, 2021 and get the same message.

@typesanitizer
Copy link

@swift-ci create

@xedin
Copy link
Member

xedin commented Mar 24, 2021

Fixed by #36558 @odmir please use the next available snapshot of main branch from swift.org to verify and close.

@odmir
Copy link
Author

odmir commented Apr 10, 2021

I can confirm that it is fixed on the latest snapshot (March 25, 2021).

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added SwiftUI Flag: Related to (but not an issue with) SwiftUI failed to produce diagnostic Bug → internal error: Failed to produce diagnostic for expression labels Dec 22, 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 diagnostics QoI Bug: Diagnostics Quality of Implementation failed to produce diagnostic Bug → internal error: Failed to produce diagnostic for expression SwiftUI Flag: Related to (but not an issue with) SwiftUI type checker Area → compiler: Semantic analysis
Projects
None yet
Development

No branches or pull requests

4 participants