Bug 22920 – Improve errors when missing import paths

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-03-24T17:11:05Z
Last change time
2024-12-13T19:21:37Z
Keywords
pull
Assigned to
No Owner
Creator
Luís Ferreira
Moved to GitHub: dmd#20072 →

Comments

Comment #0 by contact — 2022-03-24T17:11:05Z
When an import path is missing, we are not using errorSupplemental, so the error alignment is weird: --- fail_compilation/test22361.d(11): Error: unable to read module `this_module_does_not_exist` fail_compilation/test22361.d(11): Expected 'this_module_does_not_exist.d' or 'this_module_does_not_exist/package.d' in one of the following import paths: import path[0] = fail_compilation import path[1] = $p:druntime/import$ import path[2] = $p:phobos$
Comment #1 by dlang-bot — 2022-03-24T17:44:01Z
@ljmf00 updated dlang/dmd pull request #13885 "Fix issue 22920: Improve errors when missing import paths" fixing this issue: - Fix issue 22920: Improve errors when missing import paths Signed-off-by: Luís Ferreira <[email protected]> https://github.com/dlang/dmd/pull/13885
Comment #2 by robert.schadek — 2024-12-13T19:21:37Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20072 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB