Closed tmorton closed 12 years ago
Seems to work for me in 1.9.3dev and 1.8.7. Try deleting your .yardoc and regenerating yard -n
? Seems like it might be a corrupt yard db, that StubProxy shouldnt never show up.
FYI it also works just fine on rubydoc.info: http://rubydoc.info/gems/cucumber/0.3.7/frames, so...
On a different machine (my home machine), I don't get this problem. I'll try regenerating the .yardoc on the affected machine on Tuesday, but I guess this is a non-issue.
Thanks for confirming. I'll close this issue for now, but if the problem persists on your other machine feel free to come back and reopen/comment.
Summary: When viewing the documentation for Capybara 0.3.7, the class list in the left frame is not rendered, and the server console shows this stack trace:
This occurs with yard gem 0.7.2.
The immediate cause is this line: out << " < #{child.superclass.name}" if child.is_a?(CodeObjects::ClassObject) && child.superclass
A bit of investigation has revealed that child.superclass at this point is a YARD::StubProxy for nil. That proxy object is truthy, so the test at the end of the line passes, but the proxied object is nil, so the call to .name throws an exception.