[Issue 4563] [module system] Error messages for missing package or missing name
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Aug 10 14:05:59 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4563
--- Comment #2 from bearophile_hugs at eml.cc 2011-08-10 14:05:55 PDT ---
Giving code to a D newbie such person didn't know what this error message
means:
foo.d(3): Error: module ascii is in file 'std/ascii.d' which cannot
be read
import path[0] = /usr/include/d
import path[1] = /usr/include/d/druntime/import
The problem was simple, he has used dmd 2.053 instead of the successive one, so
std.ascii was not present yet. This error message is not clear enough.
In a similar situation Python2 gives:
ImportError: No module named foo
I suggest an error message like:
foo.d(3): Error: module "std.ascii" not found (file 'std/ascii.d').
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list