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-14640] Attempting to use a view that is an optional will result in "Failed to produce diagnostic for expression" for entire view #56992

Open
swift-ci opened this issue May 16, 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

@swift-ci
Copy link
Collaborator

Previous ID SR-14640
Radar None
Original Reporter suzzell (JIRA User)
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug
Assignee None
Priority Medium

md5: e83f867342355d5944d77d6f00073752

Issue Description:

I'm using SwiftUI and have a view that is an optional. Rather than getting a warning about using an optional or a compile error for it XCode failed to produce a diagnostic for it. I clicked the option to send bug report and now I'm here. Not even sure if this is the place for swiftui bugs but yeah. LMK how I can easily submit the project for further inspection.

@typesanitizer
Copy link

If you can share a minimal example for the code the fails to produce the diagnostic or if the code is open source, you can attach it here. Or else you can file a bug report through feedbackassistant.apple.com and attach your code there.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added diagnostics QoI Bug: Diagnostics Quality of Implementation failed to produce diagnostic Bug → internal error: Failed to produce diagnostic for expression type checker Area → compiler: Semantic analysis 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