Jump to page: 1 2
Thread overview
[Issue 176] [module] message "module and package have the same name"
Nov 14, 2009
Leandro Lucarella
Nov 14, 2009
Leandro Lucarella
Nov 26, 2010
Leandro Lucarella
Nov 26, 2010
Leandro Lucarella
Nov 26, 2010
Leandro Lucarella
Apr 11, 2011
Bernard Helyer
Jan 20, 2012
Jesse Phillips
Mar 22, 2012
Don
Mar 22, 2012
Walter Bright
November 14, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=176



--- Comment #1 from Leandro Lucarella <llucax@gmail.com> 2009-11-13 16:45:29 PST ---
Copying the (duplicated) bug 2338 text because it has a better description of
the problem:

Frank Benoit      2008-09-06 10:40:04 PDT

==== test.d ======
module test2;

import test2;

import test2.A; // (2) this wrong import can in another file

==== test2.d ======
module test2;
==========


If one of the compiled files has a wrong import like (2) it happens DMD is pointing to a correct import or a simply wrong location:

test2.d(3): module test2 module and package have the same name

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



--- Comment #2 from Leandro Lucarella <llucax@gmail.com> 2009-11-13 16:45:32 PST ---
*** Issue 2338 has been marked as a duplicate of this issue. ***

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


Andrei Alexandrescu <andrei@metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrei@metalanguage.com
         Resolution|                            |FIXED


--- Comment #3 from Andrei Alexandrescu <andrei@metalanguage.com> 2010-11-26 10:26:37 PST ---
I cannot reproduce this on 2.065, so I assume it has been fixed. The errror message is now:

test2.d: Error: module test2 from file test2.d conflicts with another module test2 from file test.d

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


Leandro Lucarella <llucax@gmail.com> changed:

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


--- Comment #4 from Leandro Lucarella <llucax@gmail.com> 2010-11-26 10:50:51 PST ---
/tmp/dmd/dmd$ ./linux/bin/dmd | head -n 1
Digital Mars D Compiler v1.065
/tmp/dmd/dmd$ cat test.d
module test2;

import test2;

import test2.A; // (2) this wrong import can in another file
/tmp/dmd/dmd$ cat test2.d
module test2;
/tmp/dmd/dmd$ ./linux/bin/dmd -c test.d
test.d: Error: module test2 module and package have the same name

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


Andrei Alexandrescu <andrei@metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|0.160                       |D1


--- Comment #5 from Andrei Alexandrescu <andrei@metalanguage.com> 2010-11-26 11:04:30 PST ---
Marked issue as D1.

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


Leandro Lucarella <llucax@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|D1                          |D1 & D2


--- Comment #6 from Leandro Lucarella <llucax@gmail.com> 2010-11-26 11:14:17 PST ---
Are you kidding me? :)

/tmp/dmd/dmd2$ ./linux/bin/dmd | head -n 1
Digital Mars D Compiler v2.050
/tmp/dmd/dmd2$ ./linux/bin/dmd -c test.d
test.d: Error: module test2 module and package have the same name

Marked as D1 & D2.

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



--- Comment #7 from Andrei Alexandrescu <andrei@metalanguage.com> 2010-11-26 11:20:05 PST ---
Just reproduced it now. I must've made a mistake earlier.

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


Andrei Alexandrescu <andrei@metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |ASSIGNED
         AssignedTo|nobody@puremagic.com        |bugzilla@digitalmars.com


--- Comment #8 from Andrei Alexandrescu <andrei@metalanguage.com> 2010-11-26 11:20:31 PST ---
Assigning to Walter.

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



--- Comment #9 from Leandro Lucarella <llucax@gmail.com> 2010-11-26 11:22:16 PST ---
(In reply to comment #7)
> Just reproduced it now. I must've made a mistake earlier.

In the comments, you were compiling test2.d and the problem is when compiling test.d, I guess that was the root of the confusion.

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


Bernard Helyer <blood.of.life@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |blood.of.life@gmail.com


--- Comment #10 from Bernard Helyer <blood.of.life@gmail.com> 2011-04-11 05:45:41 PDT ---
This is an incredibly stupid message.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
« First   ‹ Prev
1 2