[ruby-core:73621] Re: [Ruby trunk - Bug #12037] [Third Party's Issue] did_you_mean reporting impossible suggestion

From: Martin J. Dürst <duerst@...>
Date: 2016-02-01 02:58:53 UTC
List: ruby-core #73621
> Issue #12037 has been updated by Nobuyoshi Nakada.
>
> Status changed from Open to Third Party's Issue
> Assignee set to Yuki Nishijima
>
> Probably the same name as the erred should be removed from candidates first.

Even better, why not create a more explicit message for such a case, e.g.

~~~
NameError: undefined local variable or method `bar' for main:Object
Attempt to use before created:
         from (irb):2:in `foo'
         from (irb):5
         from /Users/carcand/.rbenv/versions/2.3.0/bin/irb:11:in `<main>'
~~~

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next