Yard throwing errors on 4.0.0 update #430

Closed
Genkilabs opened this Issue Sep 4, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@Genkilabs

Tried to update today, mad doc errors.

> gem update factory_girl
Updating installed gems
Updating factory_girl
Fetching: factory_girl-4.0.0.gem (100%)
Successfully installed factory_girl-4.0.0
Gems updated: factory_girl
Installing ri documentation for factory_girl-4.0.0...
Building YARD (yri) index for factory_girl-4.0.0...
[error]: Unhandled exception in YARD::Handlers::Ruby::CommentHandler:
[error]:   in `lib/factory_girl/syntax/methods.rb`:33:

    33: 

[error]: NoMethodError: undefined method `gsub' for :name:Symbol
[error]: Stack trace:
    /Users/Gingitsune/.rvm/gems/ruby-1.9.3-rc1/gems/yard-0.8.2.1/lib/yard/docstring_parser.rb:279:in `block (2 levels) in <class:DocstringParser>'
    /Users/Gingitsune/.rvm/gems/ruby-1.9.3-rc1/gems/yard-0.8.2.1/lib/yard/docstring_parser.rb:279:in `map'
    /Users/Gingitsune/.rvm/gems/ruby-1.9.3-rc1/gems/yard-0.8.2.1/lib/yard/docstring_parser.rb:279:in `block in <class:DocstringParser>'
    /Users/Gingitsune/.rvm/gems/ruby-1.9.3-rc1/gems/yard-0.8.2.1/lib/yard/docstring_parser.rb:248:in `call'
    /Users/Gingitsune/.rvm/gems/ruby-1.9.3-rc1/gems/yard-0.8.2.1/lib/yard/docstring_parser.rb:248:in `block in call_after_parse_callbacks'
    /Users/Gingitsune/.rvm/gems/ruby-1.9.3-rc1/gems/yard-0.8.2.1/lib/yard/docstring_parser.rb:247:in `each'

[error]: Unhandled exception in YARD::Handlers::Ruby::CommentHandler:
[error]:   in `lib/factory_girl/syntax/methods.rb`:39:

    39: 

[error]: NoMethodError: undefined method `gsub' for :name:Symbol
[error]: Stack trace:
    /Users/Gingitsune/.rvm/gems/ruby-1.9.3-rc1/gems/yard-0.8.2.1/lib/yard/docstring_parser.rb:279:in `block (2 levels) in <class:DocstringParser>'
    /Users/Gingitsune/.rvm/gems/ruby-1.9.3-rc1/gems/yard-0.8.2.1/lib/yard/docstring_parser.rb:279:in `map'
    /Users/Gingitsune/.rvm/gems/ruby-1.9.3-rc1/gems/yard-0.8.2.1/lib/yard/docstring_parser.rb:279:in `block in <class:DocstringParser>'
    /Users/Gingitsune/.rvm/gems/ruby-1.9.3-rc1/gems/yard-0.8.2.1/lib/yard/docstring_parser.rb:248:in `call'
    /Users/Gingitsune/.rvm/gems/ruby-1.9.3-rc1/gems/yard-0.8.2.1/lib/yard/docstring_parser.rb:248:in `block in call_after_parse_callbacks'
    /Users/Gingitsune/.rvm/gems/ruby-1.9.3-rc1/gems/yard-0.8.2.1/lib/yard/docstring_parser.rb:247:in `each'

This stuff goes on for pages. Any thoughts?
I'm on: ruby 1.9.3dev (2011-09-23 revision 33323) [x86_64-darwin11.2.0]
yard (0.8.2.1)
yard-rails (0.3.0, 0.2.0)

I left a question on SO too: http://stackoverflow.com/questions/12271853/yard-errors-on-factory-girl-4-0-0-update

@joshuaclayton

This comment has been minimized.

Show comment Hide comment
@joshuaclayton

joshuaclayton Sep 7, 2012

Owner

First, I'd shy away from the dev build of 1.9.3; it's buggy and outdated. I'd run p194, which is the latest stable patchlevel (last I checked!). Aside from that, I tried generating documentation and ran into an issue with a missing markdown formatter. My output is:

[error]: Missing 'redcarpet' gem for Markdown formatting. Install it with `gem install redcarpet`
rake aborted!
undefined method `new' for nil:NilClass

Tasks: TOP => yard
(See full trace by running task with --trace)

If you could send a pull request adding redcarpet as a development dependency (and then verifying that you can generate docs!), I'd really appreciate it. First, though, I'd get off of 1.9.3.dev and on something a bit more stable :-)

Owner

joshuaclayton commented Sep 7, 2012

First, I'd shy away from the dev build of 1.9.3; it's buggy and outdated. I'd run p194, which is the latest stable patchlevel (last I checked!). Aside from that, I tried generating documentation and ran into an issue with a missing markdown formatter. My output is:

[error]: Missing 'redcarpet' gem for Markdown formatting. Install it with `gem install redcarpet`
rake aborted!
undefined method `new' for nil:NilClass

Tasks: TOP => yard
(See full trace by running task with --trace)

If you could send a pull request adding redcarpet as a development dependency (and then verifying that you can generate docs!), I'd really appreciate it. First, though, I'd get off of 1.9.3.dev and on something a bit more stable :-)

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