From: Garance A Drosehn Date: 2006-07-27T03:16:45+09:00 Subject: Re: How to debug 'ri' ? On 7/24/06, Harold Hausman wrote: > > I'm seeing this all of a sudden: > C:\>ri Dir > c:/ruby/lib/ruby/1.8/rdoc/ri/ri_descriptions.rb:99:in `concat': can't > convert nil into Array (TypeError) I am not seeing that problem on my unix box, but that does not mean much... If you have write access to the files installed by ruby, then you can debug 'ri' just like any other script. I've done it in the past, with obscure bugs in 'ri' that only happened with a few specific requests. I'd save a copy of: c:/ruby/lib/ruby/1.8/rdoc/ri/ri_descriptions.rb and then change the merge_in function to add a few printf statements. Takes a little trial and error, but it's certainly doable. I assume your file looks something like: if @comment.nil? || @comment.empty? @comment = old.comment else @comment << SM::Flow::RULE.new @comment.concat old.comment # <- line 99 end so I'd add some printf statements around there to see what is going on with @comment and old.comment. -- Garance Alistair Drosehn = drosihn@gmail.com Senior Systems Programmer Rensselaer Polytechnic Institute; Troy, NY; USA