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

RDoc::Parser::Ruby failure #1560

Closed
mattwillmott opened this issue Sep 17, 2013 · 7 comments
Closed

RDoc::Parser::Ruby failure #1560

mattwillmott opened this issue Sep 17, 2013 · 7 comments
Labels
frozen-due-to-age support This is a question about Jekyll's usage.

Comments

@mattwillmott
Copy link

I am using RVM and installed Ruby 1.9.3. Apologies for not having more info as it asks before reporting but I don't know how work out the info you require. Hopefully you can help and there's an easy fix. Here is what comes up:

RDoc::Parser::Ruby failure around line 1 of
vendor/pygments-main/tests/examplefiles/ruby_func_def.rb

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

  /Users/mattwillmott/.rvm/rubies/ruby-1.9.3-p448/bin/ruby -c vendor/pygments-    main/tests/examplefiles/ruby_func_def.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 #<RDoc::RubyToken::TkLPAREN:0x007feac1d75268>

ERROR:  While executing gem ... (NoMethodError)
undefined method `name' for #<RDoc::RubyToken::TkLPAREN:0x007feac1d75268>
@parkr
Copy link
Member

parkr commented Sep 18, 2013

Did you run gem install rdoc?

@mattwillmott
Copy link
Author

No I haven't. Should I?

@parkr
Copy link
Member

parkr commented Sep 18, 2013

Yes, install rdoc. Also, what action are you performing (that produces this error)? You didn't specify that :)

@mattwillmott
Copy link
Author

(Apologies if I double post. I thought I had replied earlier).

I get the above when trying to install Jekyll.

So is this what you'd recommend?:

gem install rdoc

and then:

gem install jekyll

@parkr
Copy link
Member

parkr commented Sep 19, 2013

Yeah, try that. Otherwise try a different version of pygments.rb.

@mattwillmott
Copy link
Author

I think that's sorted it. When I type

jekyll -v

I get:

jekyll 1.2.1

Thanks :)

@parkr
Copy link
Member

parkr commented Sep 19, 2013

Yay! Glad you got it sorted.

@jekyll jekyll locked and limited conversation to collaborators Feb 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age support This is a question about Jekyll's usage.
Projects
None yet
Development

No branches or pull requests

3 participants