[Issue 7192] New: improve error message for "object.d cannot be read"

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 31 17:13:33 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=7192

           Summary: improve error message for "object.d cannot be read"
           Product: D
           Version: D1 & D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: clugdbug at yahoo.com.au


--- Comment #0 from Don <clugdbug at yahoo.com.au> 2011-12-31 17:13:30 PST ---
Would be good to special-case this one, in module.c:
----
void Module::read(Loc loc)
{
    //printf("Module::read('%s') file '%s'\n", toChars(), srcfile->toChars());
    if (srcfile->read())
    {   error(loc, "is in file '%s' which cannot be read", srcfile->toChars());

----
If srcfile == "object.d", it means there's a problem with the installation.
Instead of the generic message, we could print something like,

error(loc, "cannot find source code for runtime library file 'object.d');
errorSupplemental("dmd is not correctly installed. Paths in configuration file
'dmd.conf' may be incorrect.");

This would help make D more newbie-friendly.

-- 
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