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-14034] Print more informative diagnostic on module lookup errors. #56425

Open
typesanitizer opened this issue Jan 11, 2021 · 1 comment
Open
Labels
compiler The Swift compiler in itself diagnostics QoI Bug: Diagnostics Quality of Implementation improvement

Comments

@typesanitizer
Copy link

Previous ID SR-14034
Radar rdar://problem/73004121
Original Reporter @typesanitizer
Type Improvement
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Improvement, DiagnosticsQoI
Assignee None
Priority Medium

md5: fbfad2a1d7519869bdf41bd6b8465729

Issue Description:

In the compiler, we have several different diagnostics for module import errors. One common one that people hit is: "no such module 'X'" (sema_no_import). This is not very helpful. However, we do have a newer diagnostic that is more informative: "could not find module 'X' for target 'armv7-apple-ios'; found: arm64, arm64-apple-ios" (sema_no_import_target).

For places in the compiler which emit sema_no_import diagnostics on target mismatch, we should plumb down target information and display it using sema_no_import_target.

@typesanitizer
Copy link
Author

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler The Swift compiler in itself diagnostics QoI Bug: Diagnostics Quality of Implementation improvement
Projects
None yet
Development

No branches or pull requests

1 participant