Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Broken with yard 0.7.5? #2

Open
docwhat opened this Issue · 3 comments

1 participant

Christian Höltje
Christian Höltje

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'
Christian Höltje

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.

Christian Höltje

Hmm...no the documentation still isn't appearing. The normal yard stuff appears...

Let me look into this more.

Christian Höltje docwhat referenced this issue from a commit in docwhat/yard-thor
Christian Höltje docwhat yard is using OpenStructs instead of Hashes
This fixes issue #2
74cfd70
Christian Höltje docwhat referenced this issue
Merged

Openstruct #3

Christian Höltje

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.