Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Broken with yard 0.7.5? #2

docwhat opened this Issue · 3 comments

1 participant


I get lots of errors like this:

[error]: Unhandled exception in YARD::Handlers::Ruby::MethodHandler:
[error]:   in `lib/homedir/package_discovery_loader.rb`:9:

        9: def load_from_directory path

[error]: NoMethodError: undefined method `[]' for #<OpenStruct>
[error]: Stack trace:
        /Users/docwhat/.rvm/gems/ruby-1.9.3-p0/gems/yard-thor-0.0.1/lib/yard-thor.rb:35:in `process'
        /Users/docwhat/.rvm/gems/ruby-1.9.3-p0/gems/yard-0.7.5/lib/yard/handlers/processor.rb:128:in `block (2 levels) in process'
        /Users/docwhat/.rvm/gems/ruby-1.9.3-p0/gems/yard-0.7.5/lib/yard/handlers/processor.rb:126:in `each'
        /Users/docwhat/.rvm/gems/ruby-1.9.3-p0/gems/yard-0.7.5/lib/yard/handlers/processor.rb:126:in `block in process'
        /Users/docwhat/.rvm/gems/ruby-1.9.3-p0/gems/yard-0.7.5/lib/yard/handlers/processor.rb:125:in `each'
        /Users/docwhat/.rvm/gems/ruby-1.9.3-p0/gems/yard-0.7.5/lib/yard/handlers/processor.rb:125:in `each_with_index'

Nevermind. It works. It was a case of the real error being buried under lots of unhelpful errors. :-(

Though maybe it could be argued that yard-thor shouldn't causes problems when there was a problem.

In my case, the file gained an extra " which destroyed the syntax pars-ability of the file.

@docwhat the documentation still isn't appearing. The normal yard stuff appears...

Let me look into this more.

@docwhat docwhat referenced this issue from a commit in docwhat/yard-thor
@docwhat docwhat yard is using OpenStructs instead of Hashes
This fixes issue #2
@docwhat docwhat referenced this issue

Openstruct #3


Okay, submitted a pull request...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.