From: "mame (Yusuke Endoh)" Date: 2022-10-17T07:57:51+00:00 Subject: [ruby-core:110351] [Ruby master Bug#19065] ruby 3.1.2 is printing all class variables for undefined error Issue #19065 has been updated by mame (Yusuke Endoh). Status changed from Feedback to Closed I think this is a duplicate of #18285. Since Ruby 3.0.0, an error message of UndefinedMethod always includes all instance variables. As this could be too long as you said, it is reconsidered in #18285. ``` $ ./bin/ruby-2.7.6 -e 'class Foo; def initialize; @aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa = 1; end; end; Foo.new.boo' Traceback (most recent call last): -e:1:in `
': undefined method `boo' for # (NoMethodError) $ ./bin/ruby-3.0.0 -e 'class Foo; def initialize; @aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa = 1; end; end; Foo.new.boo' -e:1:in `
': undefined method `boo' for # (NoMethodError) ``` ---------------------------------------- Bug #19065: ruby 3.1.2 is printing all class variables for undefined error https://bugs.ruby-lang.org/issues/19065#change-99644 * Author: Varun (Sai Varun) * Status: Closed * Priority: Normal * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN ---------------------------------------- Not sure whether this is a bug or some config issue from my side ---Files-------------------------------- checking_rb2.png (20.6 KB) checking_rb1.png (19.5 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: