You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think there are two problems here (first reported at ConradIrwin/jist#2).
Most importantly is that when CodeObjects::Base#copy_to is used to clone the module_function method object; DocString#to_raw fails to recreate @option tags correctly:
I've attempted to fix this at ConradIrwin@e5cf1c3. I'm happy to send a pull request if that approach makes sense to you; otherwise it might be better to invent a less fragile way to clone CodeObjects.
The second bug? is that this causes YARD to raise an exception (though that's perhaps understandable).
pry> YARD::Docstring.new("@option options").to_raw
NoMethodError: undefined method `length' for nil:NilClass
from /Users/cirwin/.rvm/gems/ruby-1.9.3-p125/gems/yard-0.8.2.1/lib/yard/tags/default_factory.rb:139:in `extract_types_and_name_from_text_unstripped'
The text was updated successfully, but these errors were encountered:
I think there are two problems here (first reported at ConradIrwin/jist#2).
Most importantly is that when
CodeObjects::Base#copy_to
is used to clone the module_function method object;DocString#to_raw
fails to recreate@option
tags correctly:I've attempted to fix this at ConradIrwin@e5cf1c3. I'm happy to send a pull request if that approach makes sense to you; otherwise it might be better to invent a less fragile way to clone CodeObjects.
The second bug? is that this causes YARD to raise an exception (though that's perhaps understandable).
The text was updated successfully, but these errors were encountered: