Hey all -
As usual after any kind of dramatic change on my computer, ri is
semi-busted after upgrading to Snow Leopard.
Possibly relevant:
$ ri --version
ri v1.0.1 - 20041108
(Seems oddly kind of old.)
Anyhow. Works fine like this:
$ ri --system String
[gorgeous display of results omitted here for brevity]
But:
$ ri String
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
yaml.rb:133:in transfer': invalid subclass (TypeError) from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/ yaml.rb:133:in
node_import’
from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
yaml.rb:133:in load' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/ yaml.rb:133:in
load’
from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
rdoc/ri/ri_descriptions.rb:72:in deserialize' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/ rdoc/ri/ri_reader.rb:54:in
get_class’
from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
rdoc/ri/ri_reader.rb:54:in open' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/ rdoc/ri/ri_reader.rb:54:in
get_class’
from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
rdoc/ri/ri_reader.rb:52:in each' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/ rdoc/ri/ri_reader.rb:52:in
get_class’
from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
rdoc/ri/ri_driver.rb:68:in report_class_stuff' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/ rdoc/ri/ri_driver.rb:104:in
get_info_for’
from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
rdoc/ri/ri_driver.rb:133:in process_args' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/ rdoc/ri/ri_driver.rb:132:in
each’
from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
rdoc/ri/ri_driver.rb:132:in `process_args’
from /usr/bin/ri:48
Maybe something crufty left over from earlier? Any suggestions on how to
track it down? The --gems docs seem to be the problem, I think. Thx - m.