www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: clugdbug yahoo.com.au



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: -------
Dec 31 2011
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7192


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |technocrat7 gmail.com



11:48:39 PDT ---
*** Issue 3408 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: -------
Oct 28 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7192




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/2ec9a289c183ec66b220d2b7650b48348907583f
Fixes Issue 7192 - Print user-friendly error message on missing object.d
druntime file

https://github.com/D-Programming-Language/dmd/commit/aba5f2cd71c0dbd196794d00c7697f9f625dfaaa


[trivial] Fix Issue 7192 - Print user-friendly error message on missing
object.d file

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 21 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7192


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 21 2012