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

rake generate #440

Closed
rrmartins opened this issue Feb 22, 2012 · 8 comments
Closed

rake generate #440

rrmartins opened this issue Feb 22, 2012 · 8 comments

Comments

@rrmartins
Copy link

When I run the command 'rake generate', of the following error, what can I do?

MacBook-Air-de-Rodrigo:rrmartins.github.com rodrigomartins$ rake generate

Generating Site with Jekyll

unchanged sass/screen.scss
Configuration from /Users/rodrigomartins/Documents/rrmartins/octopress/rrmartins.github.com/_config.yml
Building site: source -> public
/Users/rodrigomartins/.rvm/gems/ruby-1.9.2-p290/gems/rubypython-0.5.3/lib/rubypython/rubypyproxy.rb:198:in method_missing': ClassNotFound: no lexer for alias 'rails' found (RubyPython::PythonError) from /Users/rodrigomartins/.rvm/gems/ruby-1.9.2-p290/gems/pygments.rb-0.2.4/lib/pygments/ffi.rb:135:inlexer_for'
from /Users/rodrigomartins/.rvm/gems/ruby-1.9.2-p290/gems/pygments.rb-0.2.4/lib/pygments/ffi.rb:91:in highlight' from /Users/rodrigomartins/Documents/rrmartins/octopress/rrmartins.github.com/plugins/pygments_code.rb:24:inpygments'
from /Users/rodrigomartins/Documents/rrmartins/octopress/rrmartins.github.com/plugins/pygments_code.rb:14:in highlight' from /Users/rodrigomartins/Documents/rrmartins/octopress/rrmartins.github.com/plugins/backtick_code_block.rb:37:inblock in render_code_block'
from /Users/rodrigomartins/Documents/rrmartins/octopress/rrmartins.github.com/plugins/backtick_code_block.rb:13:in gsub' from /Users/rodrigomartins/Documents/rrmartins/octopress/rrmartins.github.com/plugins/backtick_code_block.rb:13:inrender_code_block'
from /Users/rodrigomartins/Documents/rrmartins/octopress/rrmartins.github.com/plugins/octopress_filters.rb:12:in pre_filter' from /Users/rodrigomartins/Documents/rrmartins/octopress/rrmartins.github.com/plugins/octopress_filters.rb:27:inpre_render'
from /Users/rodrigomartins/Documents/rrmartins/octopress/rrmartins.github.com/plugins/post_filters.rb:112:in block in pre_render' from /Users/rodrigomartins/Documents/rrmartins/octopress/rrmartins.github.com/plugins/post_filters.rb:111:ineach'
from /Users/rodrigomartins/Documents/rrmartins/octopress/rrmartins.github.com/plugins/post_filters.rb:111:in pre_render' from /Users/rodrigomartins/Documents/rrmartins/octopress/rrmartins.github.com/plugins/post_filters.rb:166:indo_layout'
from /Users/rodrigomartins/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/post.rb:189:in render' from /Users/rodrigomartins/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/site.rb:193:inblock in render'
from /Users/rodrigomartins/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/site.rb:192:in each' from /Users/rodrigomartins/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/site.rb:192:inrender'
from /Users/rodrigomartins/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/site.rb:40:in process' from /Users/rodrigomartins/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/bin/jekyll:250:in<top (required)>'
from /Users/rodrigomartins/.rvm/gems/ruby-1.9.2-p290/bin/jekyll:19:in load' from /Users/rodrigomartins/.rvm/gems/ruby-1.9.2-p290/bin/jekyll:19:in

'
MacBook-Air-de-Rodrigo:rrmartins.github.com rodrigomartins$

@rrmartins
Copy link
Author

friends, solved the problem. was that a post had the word out instead of ruby rails. Python and could not read it.

grateful!

@dawnfriedland
Copy link

rrmartins: I'm having this same problem. When you solved the problem, what exactly did you do? Not sure what you mean by "had the word out instead of ruby rails"

@cemeng
Copy link

cemeng commented May 16, 2012

Hi @dawnfriedland - I just had this problem too, I suggest that you look at your latest post and debug it by changing things and regenerate until it works.

In my case, I had triple backticks on one line ie: hello world - which the parser didn't like (GitHub flavored markdown support this form though).

@rrmartins
Copy link
Author

I decided the problem, placing language 'ruby', in part of code. I put 'rails', and the octopress not recognizes the framework, only the languages ruby, python, C, java ....

Example:
wrong:
´´´ rails Select
<%= f.select :city_id, @cities.map{|z| [z.name, z.id]}
´´´
certain:
´´´ ruby Select
<%= f.select :city_id, @cities.map{|z| [z.name, z.id]}
´´´

@jeromeetienne
Copy link

@cemeng how did you fix it ? simply remove all the oneline backticks ?

@cemeng
Copy link

cemeng commented Aug 26, 2012

@jeromeetienne in my case yes, so all of my code snippets has the opening triple backticks not on the same line to the closing backticks (even if it's a one line code snippet)

@jeromeetienne
Copy link

@cemeng thanks

@heptat
Copy link

heptat commented Sep 11, 2012

Or just use <code>...</code> tags, then you don't have to split the sentence for inline code snippets.

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

5 participants