Project

General

Profile

Bug #986

RDoc crashes while generating HTML after parsing a Ruby DSL.

Added by postmodern (Hal Brodigan) over 10 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
1.8.6
[ruby-core:21164]

Description

=begin
I maintain a SQL-Injection DSL written in Ruby. Recently RDoc began to crash when I would run the usual API documentation generation rake task. The source-code for this DSL, which causes RDoc to crash in the middle of generating HTML documentation, is located here: http://github.com/postmodern/ronin-sql/tree/master.

$ git clone git://github.com/postmodern/ronin-sql.git
$ cd ronin-sql
$ rake --trace docs
...
Generating HTML...
/usr/lib/ruby/1.8/rdoc/markup/simple_markup/fragments.rb:291: warning: Object#type is deprecated; use Object#class
rake aborted!
undefined method level' for nil:NilClass
/usr/lib/ruby/1.8/rdoc/markup/simple_markup/fragments.rb:292:in
add_list_breaks'
/usr/lib/ruby/1.8/rdoc/markup/simple_markup/fragments.rb:282:in each'
/usr/lib/ruby/1.8/rdoc/markup/simple_markup/fragments.rb:282:in
add_list_breaks'
/usr/lib/ruby/1.8/rdoc/markup/simple_markup/fragments.rb:153:in normalize'
/usr/lib/ruby/1.8/rdoc/markup/simple_markup.rb:459:in
group_lines'
/usr/lib/ruby/1.8/rdoc/markup/simple_markup.rb:255:in convert'
/usr/lib/ruby/1.8/rdoc/generators/html_generator.rb:246:in
markup'
/usr/lib/ruby/1.8/rdoc/generators/html_generator.rb:818:in value_hash'
/usr/lib/ruby/1.8/rdoc/generators/html_generator.rb:865:in
write_on'
/usr/lib/ruby/1.8/rdoc/generators/html_generator.rb:1293:in gen_into'
/usr/lib/ruby/1.8/rdoc/generators/html_generator.rb:1293:in
open'
/usr/lib/ruby/1.8/rdoc/generators/html_generator.rb:1293:in gen_into'
/usr/lib/ruby/1.8/rdoc/generators/html_generator.rb:1289:in
each'
/usr/lib/ruby/1.8/rdoc/generators/html_generator.rb:1289:in gen_into'
/usr/lib/ruby/1.8/rdoc/generators/html_generator.rb:1276:in
generate_html'
/usr/lib/ruby/1.8/rdoc/generators/html_generator.rb:1197:in generate'
/usr/lib/ruby/1.8/rdoc/rdoc.rb:284:in
document'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rdoctask.rb:113:in define'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in
call'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in
each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:578:in
invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in
invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:588:in invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in
each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:577:in
invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in
invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:564:in invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2019:in
invoke_task'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in
each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in
standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1991:in top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1970:in
run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in
run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
=end


Related issues

Has duplicate Ruby master - Bug #1042: RDoc crashes while generating HTML after parsing a Ruby DSL.Closed01/23/2009Actions

History

#1

Updated by djberg96 (Daniel Berger) over 10 years ago

=begin
What happens if you 'gem install rdoc', then inside your Rakefile do 'gem "rdoc"', then 'require "rdoc"'?
=end

#2

Updated by ko1 (Koichi Sasada) over 10 years ago

  • Assignee set to shyouhei (Shyouhei Urabe)
  • ruby -v set to 1.8.6

=begin

=end

#3

Updated by naruse (Yui NARUSE) over 9 years ago

  • Status changed from Open to Closed

=begin
This issue was solved with changeset r26388.
Hal, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Also available in: Atom PDF