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-14321] SwiftUI CaseIterable: "Failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the project" #56680

Closed
swift-ci opened this issue Mar 10, 2021 · 2 comments
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

@swift-ci
Copy link
Collaborator

Previous ID SR-14321
Radar rdar://problem/75278859
Original Reporter iandundas (JIRA User)
Type Bug
Status Resolved
Resolution Done

Attachment: Download

Environment

Xcode 12.5 beta 3, macOS 11.2.3, iOS Playground

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, CompilerCrash
Assignee iandundas (JIRA)
Priority Medium

md5: 8d4c1517b90ecf526ec5e91abf1e4a48

Issue Description:

With the following simple iOS Playground, I receive the message "Failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the project"

(see screenshot, or attached playground, or gist: https://gist.github.com/iandundas/969ae8b7ffb755127ef60f685f265559)

@typesanitizer
Copy link

@swift-ci create

@xedin
Copy link
Member

xedin commented Mar 17, 2021

Fixed in main:

 error: referencing initializer 'init(_:content:)' on 'ForEach' requires that 'TagType' conform to 'Identifiable'
            ForEach(TagType.allCases) { tag in
            ^
SwiftUI.ForEach:2:11: note: where 'Data.Element' = 'TagType'
extension ForEach where ID == Data.Element.ID, Content : View, Data.Element : Identifiable {
          ^

iandundas (JIRA User) Please use the latest snapshot of main branch from swift.org to verify and close.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added the crash Bug: A crash, i.e., an abnormal termination of software label Dec 12, 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 type checker Area → compiler: Semantic analysis diagnostics QoI Bug: Diagnostics Quality of Implementation and removed compiler crash crash Bug: A crash, i.e., an abnormal termination of software 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