Bugs item #5563, was opened at 2006-08-30 05: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: Nobuyoshi Nakada  (nobu)
Date: 2007-05-10 09:47

Message:
This bug is fixed in the repository.

----------------------------------------------------------------------

Comment By: Laurent Sansonetti (lrz)
Date: 2006-10-06 03: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-15 12: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