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.
@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
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