octopress - Why the pygments_code.rb plugin is breaking? -
when run cmd: bundle exec rake generate
new octopress blog, fails following exception.
$ rake generate ## generating site jekyll identical source/stylesheets/screen.css configuration /users/millisami/code/octopress/_config.yml building site: source -> public /users/millisami/code/octopress/plugins/pygments_code.rb:14:in `highlight': undefined method `[]' nil:nilclass (nomethoderror) /users/millisami/code/octopress/plugins/backtick_code_block.rb:37:in `block in render_code_block' /users/millisami/code/octopress/plugins/backtick_code_block.rb:13:in `gsub' /users/millisami/code/octopress/plugins/backtick_code_block.rb:13:in `render_code_block' /users/millisami/code/octopress/plugins/octopress_filters.rb:12:in `pre_filter' /users/millisami/code/octopress/plugins/octopress_filters.rb:28:in `pre_render' /users/millisami/code/octopress/plugins/post_filters.rb:112:in `block in pre_render' /users/millisami/code/octopress/plugins/post_filters.rb:111:in `each' /users/millisami/code/octopress/plugins/post_filters.rb:111:in `pre_render' /users/millisami/code/octopress/plugins/post_filters.rb:166:in `do_layout' /users/millisami/code/octopress/.bundle/gems/jekyll-0.12.1/lib/jekyll/post.rb:195:in `render' /users/millisami/code/octopress/.bundle/gems/jekyll-0.12.1/lib/jekyll/site.rb:200:in `block in render' /users/millisami/code/octopress/.bundle/gems/jekyll-0.12.1/lib/jekyll/site.rb:199:in `each' /users/millisami/code/octopress/.bundle/gems/jekyll-0.12.1/lib/jekyll/site.rb:199:in `render' /users/millisami/code/octopress/.bundle/gems/jekyll-0.12.1/lib/jekyll/site.rb:41:in `process' /users/millisami/code/octopress/.bundle/gems/jekyll-0.12.1/bin/jekyll:264:in `<top (required)>' /users/millisami/code/octopress/.bundle/bin/jekyll:23:in `load' /users/millisami/code/octopress/.bundle/bin/jekyll:23:in `<main>'
i error. find out code format not right. in ``` tag.
before:
``` objc view.autoresizingmask = uiviewautoresizingflexibleheight | uiviewautoresizingflexiblewidth; ```
after:
``` objc view.autoresizingmask = uiviewautoresizingflexibleheight|uiviewautoresizingflexiblewidth; ```
then error info disappear, don't know why
Comments
Post a Comment