Thread overview
[Issue 1246] New: "module in multiple packages" error should say which packages
May 25, 2007
d-bugmail
[Issue 1246] "module in multiple packages" error needs fixing
May 25, 2007
d-bugmail
Nov 21, 2012
Don
May 25, 2007
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 25, 2007
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.


-- 

November 21, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=1246


Don <clugdbug@yahoo.com.au> changed:

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


--- Comment #2 from Don <clugdbug@yahoo.com.au> 2012-11-21 00:40:53 PST ---
Fixed a few releases ago.

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