www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1995] New: invalid paths feed to -J option should be warned

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1995

           Summary: invalid paths feed to -J option should be warned
           Product: D
           Version: 1.028
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: davidl 126.com


dmd -Jpathdoesn_texist_wont_fail abc.d


-- 
Apr 14 2008
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1995


wbaxter gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement





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.


-- 
Apr 14 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1995


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID





I agree with Bill's reasoning.


-- 
Apr 22 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1995


davidl 126.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |





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. 


-- 
Apr 23 2008
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1995






how about a waning if and only if an import fails and one of the paths is
invalid.


-- 
Apr 23 2008