Thread overview
[Issue 4672] New: rdmd fails when -I is needed
Aug 18, 2010
Nick Sabalausky
[Issue 4672] [patch] rdmd fails when -I is needed
Aug 18, 2010
Nick Sabalausky
Aug 19, 2010
Nick Sabalausky
Aug 20, 2010
Nick Sabalausky
Sep 03, 2010
Nick Sabalausky
Sep 24, 2010
Nick Sabalausky
August 18, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4672

           Summary: rdmd fails when -I is needed
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody@puremagic.com
        ReportedBy: cbkbbejeap@mailinator.com


--- Comment #0 from Nick Sabalausky <cbkbbejeap@mailinator.com> 2010-08-18 01:54:34 PDT ---
As discussed on the newsgroup: http://www.mail-archive.com/digitalmars-d@puremagic.com/msg35755.html

-----------------------------------------
$ cat src/app/main.d
module app.main;
import foo;
void main(){}

$ cat src/lib/foo.d
module lib.foo;

$ xfbuild -Isrc src/app/main.d
Works ok

$ rdmd -Isrc src/app/main.d
dmd craps out because rdmd told it to compile "src/app/src/lib/foo.d"
-----------------------------------------

A modified version of rdmd is attached which fixes the above AND ensures that the following still works correctly:

-----------------------------------------
$ cat ../baz/main.d
import a.b;
void main(){}

$ cat ../baz/a/b.d
module a.b;

$ rdmd ../baz/main.d
-----------------------------------------

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 18, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4672



--- Comment #1 from Nick Sabalausky <cbkbbejeap@mailinator.com> 2010-08-18 01:57:19 PDT ---
Created an attachment (id=724)
Modified rdmd

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 19, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4672



--- Comment #2 from Nick Sabalausky <cbkbbejeap@mailinator.com> 2010-08-19 00:12:49 PDT ---
Created an attachment (id=726)
Same as above, but in diff form

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 20, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4672



--- Comment #3 from Nick Sabalausky <cbkbbejeap@mailinator.com> 2010-08-19 17:28:54 PDT ---
Over here is a unified patch against rdmd r1400 for #4672, #4683 and #4684:

http://d.puremagic.com/issues/show_bug.cgi?id=4684

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 03, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4672



--- Comment #4 from Nick Sabalausky <cbkbbejeap@mailinator.com> 2010-09-03 00:05:07 PDT ---
There's a typo in the test case above:

-----------------------------------------
$ cat src/app/main.d
module app.main;
import foo;
void main(){}
-----------------------------------------

Should be:

-----------------------------------------
$ cat src/app/main.d
module app.main;
import lib.foo;
void main(){}
-----------------------------------------

(ie, Line 2 of src/app/main.d)

With that change, the test case fails with rdmd r1400, but works with xfbuild and with the rdmd patch above.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 24, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4672



--- Comment #5 from Nick Sabalausky <cbkbbejeap@mailinator.com> 2010-09-24 14:02:34 PDT ---
A combined patch for issues #4672, #4683, #4684, #4688, #4928, #4930 is here:

http://d.puremagic.com/issues/show_bug.cgi?id=4930

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 09, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4672


Andrei Alexandrescu <andrei@metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |andrei@metalanguage.com
         AssignedTo|nobody@puremagic.com        |andrei@metalanguage.com


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 14, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4672


Andrei Alexandrescu <andrei@metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


--- Comment #6 from Andrei Alexandrescu <andrei@metalanguage.com> 2011-05-14 16:47:52 PDT ---
Fixed in https://github.com/D-Programming-Language/tools/commit/27bb715ccb93d3dc27530b664f01904503c3153b.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------