Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rubocop documentation error when parsing #914

Closed
jwarykowski opened this issue Mar 22, 2014 · 0 comments
Closed

Rubocop documentation error when parsing #914

jwarykowski opened this issue Mar 22, 2014 · 0 comments

Comments

@jwarykowski
Copy link

Hey,

Noticed an issue when trying to re-install rubocop, already on my machine but didn't realise. Problem with parsing documentation.

rubocop -V
0.19.1 (using Parser 2.1.7, running on ruby 2.0.0 x86_64-darwin13.0.1)

gem install rubocop
Successfully installed rubocop-0.19.1
Parsing documentation for rubocop-0.19.1

RDoc::Parser::Ruby failure around line 55 of
lib/rubocop/cop/style/single_line_methods.rb

Before reporting this, could you check that the file you're documenting
has proper syntax:

/Users/jonathan/.rbenv/versions/2.0.0-p247/bin/ruby -c lib/rubocop/cop/style/single_line_methods.rb

RDoc is not a full Ruby parser and will fail when fed invalid ruby programs.

The internal error was:

(NoMethodError) undefined method `name' for {TkNL 1708, 54:66 "\n"}:RDoc::RubyToken::TkNL

ERROR: While executing gem ... (NoMethodError)
undefined method `name' for {TkNL 1708, 54:66 "\n"}:RDoc::RubyToken::TkNL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant