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

--- Comment #0 from Don <> 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:
------- You are receiving this mail because: -------

Reply via email to