http://d.puremagic.com/issues/show_bug.cgi?id=10327
Summary: Missing 'package.d' for DIP37 needs a better error
message
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: diagnostic
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Andrej Mitrovic <[email protected]> 2013-06-10
15:40:37 PDT ---
If you have the directory "foo\bar" and try to compile this test.d file:
-----
module test;
import foo.bar;
void main() { }
-----
The error is: test.d(3): Error: module bar is in file 'foo\bar\package.d' which
cannot be read
When there is no such directory the error is simple:
The error is: test.d(3): Error: module bar is in file 'foo\bar.d' which cannot
be read
This is ok.
But the package error message is confusing to anyone not aware of the feature
in DIP37. To make it informative, it should print:
test.d(3): Error: importing package foo.bar requires package.d which is not
found in 'foo\bar\package.d'
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------