Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rdoc Error on my README.md #417

Closed
thesecretmaster opened this issue Aug 6, 2016 · 0 comments · Fixed by #530
Closed

Rdoc Error on my README.md #417

thesecretmaster opened this issue Aug 6, 2016 · 0 comments · Fixed by #530

Comments

@thesecretmaster
Copy link

When I run rdoc on my gem, it exits with error /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/generator/template/darkfish/page.rhtml: undefined method intern' for []:Array (RDoc::Error), and if I run rdoc --exclude=README.md` it runs fine. I've found the relevant part of the README, and here it is:

    ```<http method> "<path>", "<output>"```

This is not specific to my installation, I've reproduced it on Linux and Mac and reinstalled everything on both.

Here is the full --debug stack trace:

Parsing sources...
100% [ 1/ 1]  README.md

Generating Darkfish format into /Users/me/Desktop/doc...
Copying static files
mkdir -p ./css
ln /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/generator/template/darkfish/css/fonts.css ./css/fonts.css
// Lots more of mkdir/ln
Rendering the index page...
Outputting to /Users/me/Desktop/doc/index.html
Generating class documentation in /Users/me/Desktop/doc
Generating file documentation in /Users/me/Desktop/doc
  working on README.md (/Users/me/Desktop/doc/README_md.html)
  rendering /Users/me/Desktop/doc/README_md.html
Outputting to /Users/me/Desktop/doc/README_md.html
RDoc::Error: error generating : Error while evaluating /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/generator/template/darkfish/page.rhtml: undefined method `intern' for []:Array (RDoc::Error)
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/markdown.rb:15678:in `_CodeFence'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/markdown.rb:470:in `apply'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/markdown.rb:902:in `_Block'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/markdown.rb:470:in `apply'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/markdown.rb:856:in `_Doc'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/markdown.rb:470:in `apply'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/markdown.rb:834:in `_root'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/markdown.rb:470:in `apply'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/markdown.rb:372:in `parse'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/markdown.rb:780:in `parse'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/markdown.rb:611:in `parse'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/text.rb:143:in `parse'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/comment.rb:181:in `parse'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/text.rb:137:in `parse'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml:6:in `block in generate_page'
  /Users/me/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/erb.rb:864:in `eval'
  /Users/me/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/erb.rb:864:in `result'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/generator/darkfish.rb:678:in `render'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/generator/template/darkfish/page.rhtml:33:in `block in generate_page'
  /Users/me/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/erb.rb:864:in `eval'
  /Users/me/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/erb.rb:864:in `result'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/generator/darkfish.rb:725:in `template_result'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/generator/darkfish.rb:704:in `block in render_template'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/generator/darkfish.rb:699:in `open'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/generator/darkfish.rb:699:in `open'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/generator/darkfish.rb:699:in `render_template'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/generator/darkfish.rb:467:in `generate_page'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/generator/darkfish.rb:407:in `block in generate_file_files'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/generator/darkfish.rb:403:in `each'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/generator/darkfish.rb:403:in `generate_file_files'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/generator/darkfish.rb:246:in `generate'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/rdoc.rb:534:in `block in generate'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/rdoc.rb:529:in `chdir'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/rdoc.rb:529:in `generate'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/rdoc.rb:512:in `document'
  /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/bin/rdoc:20:in `<top (required)>'
  /Users/me/.rvm/gems/ruby-2.3.0/bin/rdoc:23:in `load'
  /Users/me/.rvm/gems/ruby-2.3.0/bin/rdoc:23:in `<main>'
  /Users/me/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
  /Users/me/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'
error generating : Error while evaluating /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/generator/template/darkfish/page.rhtml: undefined method `intern' for []:Array (RDoc::Error)
/Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/markdown.rb:15678:in `_CodeFence'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/markdown.rb:470:in `apply'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/markdown.rb:902:in `_Block'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/markdown.rb:470:in `apply'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/markdown.rb:856:in `_Doc'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/markdown.rb:470:in `apply'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/markdown.rb:834:in `_root'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/markdown.rb:470:in `apply'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/markdown.rb:372:in `parse'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/markdown.rb:780:in `parse'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/markdown.rb:611:in `parse'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/text.rb:143:in `parse'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/comment.rb:181:in `parse'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/text.rb:137:in `parse'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml:6:in `block in generate_page'
    /Users/me/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/erb.rb:864:in `eval'
    /Users/me/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/erb.rb:864:in `result'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/generator/darkfish.rb:678:in `render'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/generator/template/darkfish/page.rhtml:33:in `block in generate_page'
    /Users/me/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/erb.rb:864:in `eval'
    /Users/me/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/erb.rb:864:in `result'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/generator/darkfish.rb:725:in `template_result'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/generator/darkfish.rb:704:in `block in render_template'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/generator/darkfish.rb:699:in `open'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/generator/darkfish.rb:699:in `open'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/generator/darkfish.rb:699:in `render_template'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/generator/darkfish.rb:467:in `generate_page'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/generator/darkfish.rb:407:in `block in generate_file_files'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/generator/darkfish.rb:403:in `each'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/generator/darkfish.rb:403:in `generate_file_files'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/generator/darkfish.rb:246:in `generate'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/rdoc.rb:534:in `block in generate'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/rdoc.rb:529:in `chdir'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/rdoc.rb:529:in `generate'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/lib/rdoc/rdoc.rb:512:in `document'
    /Users/me/.rvm/gems/ruby-2.3.0/gems/rdoc-4.2.2/bin/rdoc:20:in `<top (required)>'
    /Users/me/.rvm/gems/ruby-2.3.0/bin/rdoc:23:in `load'
    /Users/me/.rvm/gems/ruby-2.3.0/bin/rdoc:23:in `<main>'
    /Users/me/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
    /Users/me/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant