From: noreply@... Date: 2007-03-20T09:31:03+09:00 Subject: [ ruby-Bugs-5563 ] rdoc/usage uses an uninitalized constant Bugs item #5563, was opened at 2006-08-29 13:18 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=5563&group_id=426 Category: Standard Library Group: 1.8.5 Status: Open Resolution: None Priority: 3 Submitted By: Erik Hollensbe (erikh) >Assigned to: Eric Hodel (drbrain) Summary: rdoc/usage uses an uninitalized constant Initial Comment: requiring rdoc/usage in any environment will cause this error, but since it's heavily dependent on the comments at the top of the file I decided to show that this: --- #!/usr/bin/env ruby # # monkeys # require 'rdoc/usage' --- Generates this: --- /Users/erikh/lib/ruby/1.8/rdoc/ri/ri_options.rb:53: uninitialized constant RI::Paths (NameError) from /Users/erikh/lib/ruby/1.8/rdoc/usage.rb:72:in `require' from /Users/erikh/lib/ruby/1.8/rdoc/usage.rb:72 from test.rb:7:in `require' from test.rb:7 --- I highly suspect (after a cursory viewing) that a "require 'rdoc/ri/ri_paths'" in ri_options.rb will do the trick. ---------------------------------------------------------------------- Comment By: Laurent Sansonetti (lrz) Date: 2006-10-05 11:58 Message: Another diff that works (for me): --- lib/rdoc/usage.rb.old 2006-10-05 20:56:19.000000000 +0200 +++ lib/rdoc/usage.rb 2006-10-05 20:56:31.000000000 +0200 @@ -69,6 +69,7 @@ require 'rdoc/markup/simple_markup' require 'rdoc/markup/simple_markup/to_flow' require 'rdoc/ri/ri_formatter' +require 'rdoc/ri/ri_paths' require 'rdoc/ri/ri_options' module RDoc ---------------------------------------------------------------------- Comment By: Toby McLaughlin (jarpy) Date: 2006-09-14 20:06 Message: Adding "require 'rdoc/ri/ri_paths'" to ri_options.rb worked for me. "make test-all" passes both before and after the change. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=5563&group_id=426