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

Already on GitHub? Sign in to your account

YARD blows up on show-source #773

Closed
fowlmouth opened this Issue Dec 6, 2012 · 2 comments

Comments

Projects
None yet
4 participants
Contributor

fowlmouth commented Dec 6, 2012

I've updated GTK and a few other gems this was happening for, no change. This happens on YARD 0.8.2.1 and 0.8.3.

fowl@gungnir ~/p/c/prr> pry
┬─┬ノ( º _ ºノ) $ File.exist?
Scanning and caching *.c files...
[error]: Unhandled exception in YARD::Handlers::C::ClassHandler:
[error]:   in `/home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/gtk2-1.1.6/ext/gtk2/rbgdkpango.c`:165:

    165: klass = rb_define_class_under(mGdk, "PangoAttrEmbossed", pattrbool);

[error]: NoMethodError: undefined method `name' for nil:NilClass
[error]: Stack trace:
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/code_objects/class_object.rb:132:in `superclass='
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/c/handler_methods.rb:18:in `block in handle_class'
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/base.rb:393:in `block in register'
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/base.rb:390:in `each'
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/base.rb:390:in `register'
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/c/handler_methods.rb:11:in `handle_class'

[error]: Unhandled exception in YARD::Handlers::C::ClassHandler:
[error]:   in `/home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/gtk2-1.1.6/ext/gtk2/rbgdkpango.c`:172:

    172: klass = rb_define_class_under(mGdk, "PangoAttrStipple", pattr);

[error]: NoMethodError: undefined method `name' for nil:NilClass
[error]: Stack trace:
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/code_objects/class_object.rb:132:in `superclass='
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/c/handler_methods.rb:18:in `block in handle_class'
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/base.rb:393:in `block in register'
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/base.rb:390:in `each'
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/base.rb:390:in `register'
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/c/handler_methods.rb:11:in `handle_class'

[error]: Unhandled exception in YARD::Handlers::C::ClassHandler:
[error]:   in `/home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/gtk2-1.1.6/ext/gtk2/rbgdkpango.c`:180:

    180: klass = rb_define_class_under(mGdk, "PangoAttrEmbossColor", pattr_color);

[error]: NoMethodError: undefined method `name' for nil:NilClass
[error]: Stack trace:
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/code_objects/class_object.rb:132:in `superclass='
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/c/handler_methods.rb:18:in `block in handle_class'
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/base.rb:393:in `block in register'
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/base.rb:390:in `each'
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/base.rb:390:in `register'
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/c/handler_methods.rb:11:in `handle_class'

[error]: Unhandled exception in YARD::Handlers::C::ClassHandler:
[error]:   in `/home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/gtk2-1.1.4/ext/gtk2/rbgdkpango.c`:165:

    165: klass = rb_define_class_under(mGdk, "PangoAttrEmbossed", pattrbool);

[error]: NoMethodError: undefined method `name' for nil:NilClass
[error]: Stack trace:
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/code_objects/class_object.rb:132:in `superclass='
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/c/handler_methods.rb:18:in `block in handle_class'
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/base.rb:393:in `block in register'
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/base.rb:390:in `each'
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/base.rb:390:in `register'
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/c/handler_methods.rb:11:in `handle_class'

[error]: Unhandled exception in YARD::Handlers::C::ClassHandler:
[error]:   in `/home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/gtk2-1.1.4/ext/gtk2/rbgdkpango.c`:172:

    172: klass = rb_define_class_under(mGdk, "PangoAttrStipple", pattr);

[error]: NoMethodError: undefined method `name' for nil:NilClass
[error]: Stack trace:
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/code_objects/class_object.rb:132:in `superclass='
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/c/handler_methods.rb:18:in `block in handle_class'
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/base.rb:393:in `block in register'
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/base.rb:390:in `each'
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/base.rb:390:in `register'
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/c/handler_methods.rb:11:in `handle_class'

[error]: Unhandled exception in YARD::Handlers::C::ClassHandler:
[error]:   in `/home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/gtk2-1.1.4/ext/gtk2/rbgdkpango.c`:180:

    180: klass = rb_define_class_under(mGdk, "PangoAttrEmbossColor", pattr_color);

[error]: NoMethodError: undefined method `name' for nil:NilClass
[error]: Stack trace:
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/code_objects/class_object.rb:132:in `superclass='
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/c/handler_methods.rb:18:in `block in handle_class'
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/base.rb:393:in `block in register'
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/base.rb:390:in `each'
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/base.rb:390:in `register'
    /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/c/handler_methods.rb:11:in `handle_class'

^CInterrupt: 
from /home/fowl/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/yard-0.8.3/lib/yard/handlers/c/base.rb:31:in `statement_class'

@rf- rf- added the bug label Apr 29, 2014

I recommend closing this issue because of it's age.

Contributor

fowlmouth commented Jul 24, 2014

Is that what we do to issues we do not like? Ignore them until they grow old, fat and ugly and we can no longer stand to look at them? Then what, you gonna take my issue for a short walk in the woods and shoot it? Heartless.

In any case, I cannot reproduce this now and this issue should probably be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment