Bug 1995 – invalid paths feed to -J option should be warned

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2008-04-14T21:11:51Z
Last change time
2020-08-06T12:25:02Z
Keywords
bootcamp, pull
Assigned to
Walter Bright
Creator
david

Comments

Comment #0 by davidl — 2008-04-14T21:11:51Z
dmd -Jpathdoesn_texist_wont_fail abc.d
Comment #1 by wbaxter — 2008-04-14T21:59:20Z
I disagree. -J is specifying an include path, for where to search for something. Include directories that don't exist usually don't trigger warning messages (like -Idir or -Ldir). Making it not an error is useful in that you can include a bunch of standard locations that may or may not exist inside a build file, and a user can add an extra location at the command line if none of the standard locations exist or contain the file sought.
Comment #2 by bugzilla — 2008-04-22T20:51:32Z
I agree with Bill's reasoning.
Comment #3 by davidl — 2008-04-23T05:53:08Z
I will appeciate if there's a warning message with certain options on. I find current behavior very annoying when I mistype some included path to the compiler, and waste a lot of time on figure out why this specific file can't be imported.
Comment #4 by shro8822 — 2008-04-23T10:17:23Z
how about a waning if and only if an import fails and one of the paths is invalid.
Comment #5 by dlang-bot — 2020-08-06T11:31:29Z
@Geod24 created dlang/dmd pull request #11521 "Fix 1995: Provide more informative error message for import(exp)" fixing this issue: - Fix 1995: Provide more informative error message for import(exp) https://github.com/dlang/dmd/pull/11521
Comment #6 by dlang-bot — 2020-08-06T12:25:02Z
dlang/dmd pull request #11521 "Fix 1995: Provide more informative error message for import(exp)" was merged into master: - d8564673061857ee50d95e2267d64cc11db5d7ae by Geod24: Fix 1995: Provide more informative error message for import(exp) https://github.com/dlang/dmd/pull/11521