-
-
Notifications
You must be signed in to change notification settings - Fork 399
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
Error on "yard graph" #245
Comments
I went though the backtrace and made the following changes: lib/yard/code_objects/base.rb:325:in method_missing() templates/default/class/dot/superklass.erb: templates/default/default/module/dor/info.erb: This is more of a hack though... |
Same crash here with Ruby 1.9.2-p136 and yard 0.6.4 but different stack trace:
I "fixed" the superklass.erb template:
|
same issue here with Ruby 1.9.2 |
Ok, fixes work! Thanks! Best |
Can anybody provide a minimal case that reproduces this issue? I've applied mattetti's patch, but I'd like to know how to confirm this is fixing an issue. Regards |
I've tested it against Arachni and it works. I'll push a commit and close this ticket now. |
Fix invalid parsing of modules as classes in Closed by 9d5fccd |
Thank you for taking care of this! |
Thanks indeed, I'll check that it works properly on my current project. |
Hi, I'm trying to run "yard graph" but I get the following error:
'/home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/code_objects/base.rb:325:in
method_missing': undefined method
superclass' for # (NoMethodError)from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/templates/default/class/dot/superklass.erb:3:in
_erb_cache_4' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:238:in
erb'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:316:in
render_section' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:210:in
block (2 levels) in run'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:207:in
each' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:207:in
block in run'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:345:in
add_options' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:206:in
run'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:91:in
run' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:319:in
render_section'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:210:in
block (2 levels) in run' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:207:in
each'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:207:in
block in run' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:351:in
add_options'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:206:in
run' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:228:in
block in yieldall'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:359:in
with_section' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:228:in
yieldall'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/templates/default/module/dot/header.erb:6:in
block in _erb_cache_3' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/templates/default/module/dot/header.erb:5:in
each'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/templates/default/module/dot/header.erb:5:in
_erb_cache_3' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:238:in
erb'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:316:in
render_section' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:210:in
block (2 levels) in run'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:207:in
each' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:207:in
block in run'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:345:in
add_options' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:206:in
run'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:91:in
run' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:319:in
render_section'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:210:in
block (2 levels) in run' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:207:in
each'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:207:in
block in run' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:351:in
add_options'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:206:in
run' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:228:in
block in yieldall'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:359:in
with_section' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:228:in
yieldall'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/templates/default/module/dot/setup.rb:13:in
block in classes' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/templates/default/module/dot/setup.rb:13:in
map'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/templates/default/module/dot/setup.rb:13:in
classes' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:314:in
render_section'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:210:in
block (2 levels) in run' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:207:in
each'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:207:in
block in run' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:345:in
add_options'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:206:in
run' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:91:in
run'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:319:in
render_section' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:210:in
block (2 levels) in run'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:207:in
each' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:207:in
block in run'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:351:in
add_options' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:206:in
run'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:228:in
block in yieldall' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:359:in
with_section'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:228:in
yieldall' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/templates/default/module/dot/header.erb:6:in
block in _erb_cache_3'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/templates/default/module/dot/header.erb:5:in
each' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/templates/default/module/dot/header.erb:5:in
_erb_cache_3'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:238:in
erb' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:316:in
render_section'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:210:in
block (2 levels) in run' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:207:in
each'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:207:in
block in run' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:345:in
add_options'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:206:in
run' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/template.rb:91:in
run'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/engine.rb:86:in
block in render' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/engine.rb:115:in
with_serializer'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/templates/engine.rb:86:in
render' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/code_objects/base.rb:432:in
format'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/cli/graph.rb:38:in
block in run' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/cli/graph.rb:38:in
map'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/cli/graph.rb:38:in
run' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/cli/command.rb:13:in
run'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/cli/command_parser.rb:67:in
run' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/lib/yard/cli/command_parser.rb:49:in
run'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/gems/yard-0.6.4/bin/yard:4:in
<top (required)>' from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/bin/yard:19:in
load'from /home/zapotek/.rvm/gems/ruby-1.9.2-p136/bin/yard:19:in `
Any ideas?
The text was updated successfully, but these errors were encountered: