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-14862] "Failed to produce diagnostic" even though the error message looks fine #57209

Open
swift-ci opened this issue Jul 1, 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 type checker Area → compiler: Semantic analysis

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Jul 1, 2021

Previous ID SR-14862
Radar rdar://80003418
Original Reporter Austin Conlon (JIRA User)
Type Bug

Attachment: Download

Additional Detail from JIRA
Votes 0
Component/s
Labels Bug
Assignee None
Priority Medium

md5: 106c53ee909673c989f3fa90c77144d9

Issue Description:

It looks like the error message is correctly telling me that `ViewModel` is outside the scope of the newly added WatchPrivateDatabase target, yet there is the added error message “failed to produce diagnostic…”

I've also filed this in Feedback Assistant under FB9227213 with the relevant logs and attachments. This is my first time filing a bug in the swift.org system, please let me know if I can be more precise or helpful.

![](Screen Shot 2021-06-30 at 10.36.05 PM.png)

@swift-ci
Copy link
Collaborator Author

swift-ci commented Jul 6, 2021

Comment by Austin Conlon (JIRA)

Project for reproducing is now attached, take a look at `ContentView` in the watchOS target.

@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 compiler The Swift compiler in itself type checker Area → compiler: Semantic analysis 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 type checker Area → compiler: Semantic analysis
Projects
None yet
Development

No branches or pull requests

2 participants