[Rubygems-developers] possible bug in doc_manager.rb
Eric Hodel
drbrain at segment7.net
Tue Dec 18 15:02:42 EST 2007
On Dec 18, 2007, at 03:51 AM, Chad Woolley wrote:
> NOTE: this may be Ruby 1.8.5 specific. In my tests which exercise gem
> installation, I'm getting errors like this:
>
> uninitialized constant RubyToken::AlreadyDefinedToken
>
> This is occurring from Gem::DocManager#load_rdoc, where it does:
>
> require 'rdoc/rdoc'
>
> I get this same error when I try this require in IRB, on multiple
> platforms using ruby 1.8.5:
>
> irb(main):001:0> require 'rdoc/rdoc'
> [...]
> NameError: uninitialized constant RubyToken::AlreadyDefinedToken
> from /usr/local/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:273:in
> `def_token'
> from /usr/local/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:300
> from /usr/local/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:299:in
> `each'
> from /usr/local/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:299
> from /usr/local/lib/ruby/1.8/rdoc/rdoc.rb:8:in `require'
> from /usr/local/lib/ruby/1.8/rdoc/rdoc.rb:8
> from (irb):1:in `require'
> from (irb):1
>
>
> I'm not sure if this is a bug in rubygems, or if I am missing a
> prerequisite require since I'm invoking gem installation
> programatically. This require has been around forever, but there have
> been some recent refactorings to doc_manager...
Do you get the same without irb? Since RDoc uses a bunch of irb code,
the two may be incompatible.
More information about the Rubygems-developers
mailing list