Bug 22361 – Failed import gives misleading error message

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-10-06T17:10:38Z
Last change time
2021-10-08T11:03:16Z
Keywords
diagnostic, pull
Assigned to
No Owner
Creator
Paul Backus

Comments

Comment #0 by snarwin+bugzilla — 2021-10-06T17:10:38Z
As of DMD 2.097.2, attempting to compile the following program: --- import foo; --- ...results in the following error message when the file `foo.d` does not exist: --- bug.d(1): Error: module `foo` is in file 'foo.d' which cannot be read --- This error message is misleading. In particular, the statement that "module `foo` is in file 'foo.d'" is false, since no file named 'foo.d' exists.
Comment #1 by dlang-bot — 2021-10-06T17:53:27Z
@pbackus created dlang/dmd pull request #13134 "Fix Issue 22361 - Failed import gives misleading error message" fixing this issue: - Fix Issue 22361 - Failed import gives misleading error message https://github.com/dlang/dmd/pull/13134
Comment #2 by dlang-bot — 2021-10-08T11:03:16Z
dlang/dmd pull request #13134 "Fix Issue 22361 - Failed import gives misleading error message" was merged into master: - 3d6c299862f2aaabd163fab4cdb55b0a1fb0ea57 by Paul Backus: Fix Issue 22361 - Failed import gives misleading error message https://github.com/dlang/dmd/pull/13134