I just ran the unit tests on some code I haven’t touched since
November 2006. The last time I checked, the unit tests ran without a
hitch, but now I’m getting lots of “warning: instance variable … not
initialized” warnings. The warning looks legit, but I’m confused
because I don’t think I’ve changed anything on my end that would cause
it to suddenly appear. Have Ruby versions released in the past year
gotten more verbose about this warning?
On Oct 17, 2007, at 14:50 , Bill McNeill wrote:
I just ran the unit tests on some code I haven’t touched since
November 2006. The last time I checked, the unit tests ran without a
hitch, but now I’m getting lots of “warning: instance variable … not
initialized” warnings. The warning looks legit, but I’m confused
because I don’t think I’ve changed anything on my end that would cause
it to suddenly appear. Have Ruby versions released in the past year
gotten more verbose about this warning?
No.
$ ruby168 -wve ‘p @foo’
ruby 1.6.8 (2002-12-24) [powerpc-darwin8.2.0]
-e:1: warning: instance variable @foo not initialized
nil
Maybe you added “-w” ?