Project

General

Profile

Actions

Bug #1234

closed

RDoc failure in benchmark/bm_so_meteor_contest.rb at or around line 542 column

Added by daigo (daigo moriwaki) about 15 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.2dev (2009-03-01 trunk 22688) [x86_64-linux]
Backport:
[ruby-dev:38109]

Description

=begin
Making documents fails with the following error:

% ./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb ./runruby.rb --extout=.ext -- "./bin/rdoc" --all --ri --op .ext/doc benchmark/bm_so_meteor_contest.rb

benchmark/bm_so_meteor_contest.rb: mCmmmmmmmmCmmmmmmmmmmmmmmmm

RDoc failure in benchmark/bm_so_meteor_contest.rb at or around line 542 column
0

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:

/home/daigo/cprojects/org/ruby_1_9/lib/rdoc/parser/ruby.rb:2049:in parse_meta_method': undefined method top_level' for #RDoc::TopLevel:0x00000002bda180 (NoMethodError)
from /home/daigo/cprojects/org/ruby_1_9/lib/rdoc/parser/ruby.rb:2445:in parse_statements' from /home/daigo/cprojects/org/ruby_1_9/lib/rdoc/parser/ruby.rb:2540:in parse_toplevel_statements'
from /home/daigo/cprojects/org/ruby_1_9/lib/rdoc/parser/ruby.rb:2706:in `block (2 levels) in scan'
=end


Files

ruby.rb.diff (564 Bytes) ruby.rb.diff daigo (daigo moriwaki), 03/01/2009 09:03 PM

Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #2635: Unbundle rdocRejectedmatz (Yukihiro Matsumoto)01/23/2010Actions
Actions #1

Updated by yugui (Yuki Sonoda) over 14 years ago

  • Category set to lib
  • Assignee set to drbrain (Eric Hodel)
  • Priority changed from 3 to Normal

=begin

=end

Actions #2

Updated by drbrain (Eric Hodel) over 14 years ago

=begin
This is fixed in RDoc trunk.
=end

Actions #3

Updated by drbrain (Eric Hodel) almost 14 years ago

  • Status changed from Open to Closed

=begin
Now checked in.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0