Bug 22817 – [REG 2.099] Missing file gives misleading error message

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-02-23T00:10:39Z
Last change time
2022-02-27T19:50:59Z
Keywords
diagnostic, pull
Assigned to
No Owner
Creator
Iain Buclaw

Comments

Comment #0 by ibuclaw — 2022-02-23T00:10:39Z
Caused by https://github.com/dlang/dmd/pull/13134 Old behaviour --- (stable) $ dmd foo.c Error: module `foo` is in file 'foo.c' which cannot be read --- New behaviour --- (stable) $ ./generated/linux/release/64/dmd foo.c Error: unable to read module `foo` Expected 'foo.c' or 'foo/package.d' in one of the following import paths: import path[0] = ./generated/linux/release/64/../../../../../druntime/import import path[1] = ./generated/linux/release/64/../../../../../phobos (stable) $ mkdir bar (stable) $ touch bar/package.d (stable) $ ./generated/linux/release/64/dmd bar.d Error: unable to read module `bar` Expected 'bar.d' or 'bar/package.d' in one of the following import paths: import path[0] = ./generated/linux/release/64/../../../../../druntime/import import path[1] = ./generated/linux/release/64/../../../../../phobos ---
Comment #1 by dlang-bot — 2022-02-23T01:15:14Z
@ibuclaw created dlang/dmd pull request #13708 "fix Issue 22817 - [REG 2.099] Missing file gives misleading error message" fixing this issue: - fix Issue 22817 - [REG 2.099] Missing file gives misleading error message https://github.com/dlang/dmd/pull/13708
Comment #2 by dlang-bot — 2022-02-23T02:12:39Z
dlang/dmd pull request #13708 "fix Issue 22817 - [REG 2.099] Missing file gives misleading error message" was merged into stable: - c4cf8f09029de2cab3b42e148dcc65e10c29eb4f by Iain Buclaw: fix Issue 22817 - [REG 2.099] Missing file gives misleading error message https://github.com/dlang/dmd/pull/13708
Comment #3 by dlang-bot — 2022-02-27T19:50:59Z
dlang/dmd pull request #13725 "Merge remote-tracking branch 'upstream/stable' into merge_stable" was merged into master: - f7f4377db13987344dd358d73bc0a8646d48a527 by Iain Buclaw: fix Issue 22817 - [REG 2.099] Missing file gives misleading error message https://github.com/dlang/dmd/pull/13725