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

Yard has an undeclared dependency on the Rdoc gem #270

Closed
pangloss opened this issue Apr 3, 2011 · 2 comments
Closed

Yard has an undeclared dependency on the Rdoc gem #270

pangloss opened this issue Apr 3, 2011 · 2 comments

Comments

@pangloss
Copy link

pangloss commented Apr 3, 2011

In JRuby 1.6.0, I was getting the following error when I run rake yard. I had not explicitly installed any rdoc gem, but when I installed the most current one the problem went away.

[error]: Exception occurred while generating 'Pacer/VertexMixin.html'
[error]: ArgumentError: wrong number of arguments (1 for 0)
[error]: Stack trace:
/Users/dw/.rvm/rubies/jruby-1.6.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:35:in require' /Users/dw/.rvm/rubies/jruby-1.6.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:inrequire'
/Users/dw/.rvm/gems/jruby-1.6.0/gems/yard-0.6.5/lib/yard/templates/helpers/html_helper.rb:456:in simple_markup_html' /Users/dw/.rvm/gems/jruby-1.6.0/gems/yard-0.6.5/lib/yard/templates/helpers/html_helper.rb:81:inhtml_markup_rdoc'
org/jruby/RubyKernel.java:2042:in send' /Users/dw/.rvm/gems/jruby-1.6.0/gems/yard-0.6.5/lib/yard/templates/helpers/html_helper.rb:42:inhtmlify'

@lsegal
Copy link
Owner

lsegal commented Apr 3, 2011

YARD actually no longer depends on RDoc as of 0.6.5, but you do need at least one markup provider of the markup type used by the docs in order to actually generate docs-- and the default markup type is indeed rdoc. It seems like the "you do not have installed" notice is not showing up properly, which is probably related to #269

@lsegal
Copy link
Owner

lsegal commented Apr 4, 2011

Refactor RDoc markup into Templates::Helpers::Markup::RDocMarkup class and
improve early error detection if RDoc is not present on the system.

Closed by 39bd468

@lsegal lsegal closed this as completed Apr 4, 2011
wincent added a commit to wincent/wikitext that referenced this issue Dec 22, 2020
Because the `rake yard` task explodes without it. Possibly related:

    lsegal/yard#270

or maybe not... I don't know; the issue is super old.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants