Jekyll on Windows: Pygments not working Jekyll on Windows: Pygments not working ruby ruby

Jekyll on Windows: Pygments not working


I had the same issue. Seems there's a problem in Pygments.rb 0.5.1. By rolling back to Pygments 0.5.0 the error disappeared.

gem uninstall pygments.rb --version ">0.5.0"gem install pygments.rb --version "=0.5.0"

Hope this helps.


Expanding upon zzheng's explanation, if you're still having issues try running gem list.Then make sure pygments.rb (0.5.2) isn't installed. If it is, just run this command.

gem uninstall pygments.rb --version "=0.5.2"

That should take care of your problem, and you should be able to publish with Jekyll happily on Windows once again.

EDIT: Also, based upon my own experience, this may cause another error. Liquid Error: Failed to get header. in 2013-07-20-post-name-here.md. The (unconfirmed) solution is to install Python 2.7.* if you have not already done so, although some people report that this does not fix the problem.

Further Reading:

Jekyll Github Issue #1181

Pygments.rb Github Issue #45

Run jekyll --server Failed in Win7


if you add highlighter: false to your config.yml, you can avoid loading Pygments at all