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-14820] Failed to produce diagnostic #2 (SwiftUI) #57168

Open
odmir opened this issue Jun 24, 2021 · 1 comment
Open

[SR-14820] Failed to produce diagnostic #2 (SwiftUI) #57168

odmir opened this issue Jun 24, 2021 · 1 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

Comments

@odmir
Copy link

odmir commented Jun 24, 2021

Previous ID SR-14820
Radar rdar://problem/79746785
Original Reporter @odmir
Type Bug
Environment

macOS Monterey 12.0 Beta (21A5248p)

Xcode 13.0 beta (13A5154h)

Tested toolchains:

  • Default Xcode 13.0 Swift Toolchain and

  • Swift 5.5 Development Snapshot 2021-06-14 (a)

  • Swift 5.5 Development Snapshot 2021-06-23 (a)

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

md5: 7b37c401ca187bcf47294bab380a51ae

Issue Description:

import SwiftUI

struct ContentView: View {
    var body: some View {
        List {
            List {
                Text("").
            }
            Text("")
        }
    }
}
import SwiftUI

struct ContentView: View {
    var body: some View {
        List {
            {
                Text("").
            }
            Text("")
        }
    }
}

These two examples show the "Failed to produce diagnostic..." error but the compiler still shows the correct "Expected member name following '.'" error at the Text(""). line.

The second example only removes "List" but keeps the brackets.

@typesanitizer
Copy link

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added failed to produce diagnostic Bug → internal error: Failed to produce diagnostic for expression SwiftUI Flag: Related to (but not an issue with) SwiftUI labels Dec 22, 2022
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

3 participants