Bug 23908 – confusing nonexistent import hint on cyclic import

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2023-05-09T09:55:09Z
Last change time
2023-05-09T12:42:19Z
Keywords
diagnostic, pull
Assigned to
No Owner
Creator
Dennis

Comments

Comment #0 by dkorpel — 2023-05-09T09:55:09Z
If you have module a, and import something non existent from module b: ``` module a; import b : nonexistent; ``` ``` module b; import a; ``` The error message is: ``` a.d(3): Error: module `b` import `nonexistent` not found, did you mean alias `a.nonexistent`? ``` It's suggesting the very alias that the error is about, which obviously won't work.
Comment #1 by dlang-bot — 2023-05-09T10:19:04Z
@dkorpel created dlang/dmd pull request #15209 "Fix 23908 - confusing nonexistent import hint on cyclic import" fixing this issue: - Fix 23908 - confusing nonexistent import hint on cyclic import https://github.com/dlang/dmd/pull/15209
Comment #2 by dlang-bot — 2023-05-09T12:42:19Z
dlang/dmd pull request #15209 "Fix 23908 - confusing nonexistent import hint on cyclic import" was merged into master: - c14c5b47a9c7d53e8952c79c04735f5701e75f40 by Dennis Korpel: Fix 23908 - confusing nonexistent import hint on cyclic import https://github.com/dlang/dmd/pull/15209