mislav / hanna

More than just a new RDoc template
MIT License
234 stars 40 forks source link

RDoc failure on version 0.1.11 #9

Closed bquorning closed 14 years ago

bquorning commented 14 years ago

Per http://github.com/mislav/hanna/commit/740a640b3d66788b12aa412b163ecc56fe54c730#comment_30630

RDoc fails when parsing version 0.1.11:

RDoc failure in lib/rubygems_plugin.rb at or around line 12 column 36

Before reporting this, could you check that the file you're documenting compiles cleanly--RDoc is not a full Ruby parser, and gets confused easily if fed invalid programs.

The internal error was:

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rdoc/code_objects.rb:275:in add_require': undefined methodadd_require' for nil:NilClass (NoMethodError)
  from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:2427:in `parse_require'
  from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:1706:in `parse_statements'
  from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:1986:in `parse_method'
mislav commented 14 years ago

please RDoc parser: move the require outside of method body

closed by d29277501b481f551371d7cad3141d3003524a37