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

undefined method `parameters' for #<yardoc class Roby::Task> when opening class that works with 0.9.25 locally #146

Open
doudou opened this issue Jun 29, 2020 · 2 comments

Comments

@doudou
Copy link

doudou commented Jun 29, 2020

Hi. First of all, many thanks for maintaining this awesome resource ...

Opening https://www.rubydoc.info/github/rock-core/tools-roby/Roby/Task leads to (full backtrace: backtrace.txt)

Running yard 0.9.25 locally works.

undefined method `parameters' for #<yardoc class Roby::Task>
/usr/local/bundle/ruby/2.7.0/bundler/gems/yard-ca59056a5c70/lib/yard/code_objects/base.rb:378:in `method_missing'
/usr/local/bundle/ruby/2.7.0/bundler/gems/yard-ca59056a5c70/templates/default/tags/html/option.erb:4:in `_erb_cache_14'
/usr/local/bundle/ruby/2.7.0/bundler/gems/yard-ca59056a5c70/lib/yard/templates/template.rb:287:in `erb'
/usr/local/bundle/ruby/2.7.0/bundler/gems/yard-ca59056a5c70/lib/yard/templates/template.rb:369:in `render_section'
/usr/local/bundle/ruby/2.7.0/bundler/gems/yard-ca59056a5c70/lib/yard/templates/template.rb:259:in `block (2 levels) in run'
/usr/local/bundle/ruby/2.7.0/bundler/gems/yard-ca59056a5c70/lib/yard/templates/template.rb:256:in `each'
/usr/local/bundle/ruby/2.7.0/bundler/gems/yard-ca59056a5c70/lib/yard/templates/template.rb:256:in `block in run'
/usr/local/bundle/ruby/2.7.0/bundler/gems/yard-ca59056a5c70/lib/yard/templates/template.rb:398:in `add_options'
/usr/local/bundle/ruby/2.7.0/bundler/gems/yard-ca59056a5c70/lib/yard/templates/template.rb:255:in `run'
/usr/local/bundle/ruby/2.7.0/bundler/gems/yard-ca59056a5c70/lib/yard/templates/template.rb:277:in `block in yieldall'
/usr/local/bundle/ruby/2.7.0/bundler/gems/yard-ca59056a5c70/lib/yard/templates/template.rb:412:in `with_section'
/usr/local/bundle/ruby/2.7.0/bundler/gems/yard-ca59056a5c70/lib/yard/templates/template.rb:277:in `yieldall'
@lsegal
Copy link
Collaborator

lsegal commented Jul 19, 2020

This is probably due to Roby's use of plugins with YARD local builds: https://github.com/rock-core/tools-roby/blob/master/lib/roby/yard.rb

Custom plugins are supported during build phase but not for templating (unless whitelisted), so it's possible that the plugin is parsing code in a way that is not compatible with a default un-modified template.

@doudou
Copy link
Author

doudou commented Jul 20, 2020

Not sure I fully understand. I don't use a custom template (or at least I don't think I do).

How could I test this locally ?

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