www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1246] New: "module in multiple packages" error should say which packages

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

           Summary: "module in multiple packages" error should say which
                    packages
           Product: D
           Version: 1.014
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: wbaxter gmail.com


I find myself yet again facing the dreaded "module blah is in multiple packages
blah" compiler error.  It would be a huge help in fixing these errors if the
compiler actually said *which* packages it was talking about.

Right now I'm staring at such an error, and I don't see any other module with
the same name.  I have no idea where to look for the conflicting module.  Must
be something somewhere on my include path I guess.  Or just a mistaken module
declaration somewhere from a copy-paste error.  Whatever it is, it would be a
lot easier to find if the compiler told me what it thought was conflicting.


-- 
May 24 2007
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1246


wbaxter gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|"module in multiple         |"module in multiple
                   |packages" error should say  |packages" error needs fixing
                   |which packages              |




------- Comment #1 from wbaxter gmail.com  2007-05-24 21:30 -------
(In reply to comment #0)
 I find myself yet again facing the dreaded "module blah is in multiple packages
 blah" compiler error.  It would be a huge help in fixing these errors if the
 compiler actually said *which* packages it was talking about.

Even worse, in this case the problem turned out to be that I was doing import Point3D; when the module in file Point3d.d had module Point3d; So the error message "module is in multiple packages" is not even accurate. Since it has to do with files and case, this could be a Windows specific problem. --
May 24 2007