[SR-14034] Print more informative diagnostic on module lookup errors. #56425
Labels
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
improvement
Additional Detail from JIRA
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 usingsema_no_import_target
.The text was updated successfully, but these errors were encountered: