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-9554] Improve diagnostic for naming a project after a system framework, case-insensitively #52002

Open
belkadan opened this issue Dec 20, 2018 · 0 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

Comments

@belkadan
Copy link
Contributor

Previous ID SR-9554
Radar rdar://problem/41345238
Original Reporter @belkadan
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, DiagnosticsQoI
Assignee None
Priority Medium

md5: c7fcd90f3c5d12c20491507b25000c8e

relates to:

  • SR-4259 Request: fixit for import module casing

Issue Description:

On a case-insensitive filesystem, if you make an app in Xcode named, say, "foundation", then import Foundation will give you a pretty lousy error message after the first build: "error: cannot load module 'foundation' as 'Foundation'". This is because Xcode provides an explicit search path to the build directory, and will generate a module for the app or framework target (foundation.swiftmodule).

Ideally, we would keep searching to see if there really is a module with the proper case, but I'm not exactly sure how to do that.

@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
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
Projects
None yet
Development

No branches or pull requests

1 participant