Thread overview
[Issue 10140] New: confusing error message: X is private; undefined identifier Y, did you mean X
Aug 04, 2013
yebblies
May 23, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10140

           Summary: confusing error message: X is private; undefined
                    identifier Y, did you mean X
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: thelastmammoth@gmail.com


--- Comment #0 from thelastmammoth@gmail.com 2013-05-23 00:33:10 PDT ---
----
import std.regex;
void main(){
    auto c=match(s,``);
}
----

Error: module bug std.regex.IR is private
bug.d(3): Error: undefined identifier s, did you mean enum IR?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 23, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10140



--- Comment #1 from thelastmammoth@gmail.com 2013-05-23 00:35:33 PDT ---
(In reply to comment #0)
> ----
> import std.regex;
> void main(){
>     auto c=match(s,``);
> }
> ----
> 
> Error: module bug std.regex.IR is private
> bug.d(3): Error: undefined identifier s, did you mean enum IR?

Just to clarify, the bug is that the error message shouldn't even say 'Error: module bug std.regex.IR is private' (which is very confusing). It should just say:

Error: undefined identifier s, did you mean enum IR?

The second weird thing is that 's' is far from 'IR'; shouldn't it either specify other symbols or put a cap on levinstein distance?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 04, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10140


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies@gmail.com
         Resolution|                            |DUPLICATE


--- Comment #2 from yebblies <yebblies@gmail.com> 2013-08-04 22:07:34 EST ---
And also issue 9644

*** This issue has been marked as a duplicate of issue 5839 ***

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