Comments (4)
Tested pygments 0.5.4 on windows, here is the result
install
F:\Github\home\headjs>gem install pygments.rb
Fetching: pygments.rb-0.5.4.gem (100%)
Successfully installed pygments.rb-0.5.4
1 gem installed
Installing ri documentation for pygments.rb-0.5.4...
Installing RDoc documentation for pygments.rb-0.5.4...
_config.yml (to have same as github)
# GitHub Defaults
lsi: false
pygments: true
safe: true
# UTF-8 & parse errors fix
markdown: redcarpet
build
F:\Github\home\headjs>jekyll build
Configuration file: F:/Github/home/headjs/_config.yml
Source: F:/Github/home/headjs
Destination: F:/Github/home/headjs/_site
Generating... C:/Ruby193/lib/ruby/gems/1.9.1/gems/posix-spawn-0.3.6/lib/posix/spawn.rb:162: warning: cannot close fd before spawn←[31m Liquid Exception: No such file or directory - /bin/sh in index.html←[0m done.
Seems more like a path problem. Switching to redcarpet on windows resolves the UTF-8 problems.
Would be nice to be able to upgrade to pygments 0.5.4 to get rid of the python dependencies :-)
from pygments.rb.
I got the the same issue running jekyll on windows x64 and Ruby 2.0.0-p247 x64. I cloned Jekyll Bootstrap. I had 1 warning when I ran bundle install.
Parsing documentation for redcarpet-3.0.0
unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/redcarpet.so, skipping
But my site ran fine locally and the error came first after I tried to get gfm to work by adding this line to the config:
markdown: redcarpet
C:\github\virtueme.github.io [jb +2 ~3 -1 !]> jekyll serve
Configuration file: C:/github/virtueme.github.io/_config.yml
Source: C:/github/virtueme.github.io
Destination: C:/github/virtueme.github.io/_site
Generating... C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/posix-spawn-0.3.6/lib/posix/spawn.rb:162: warning: cannot close fd before spawn
Conversion error: There was an error converting '_posts/core-samples/2011-12-29-jekyll-introduction.md'.
done.
Server address: http://0.0.0.0:4000
Server running... press ctrl-c to stop.
PS:
Downgrading to pygments.rb 0.5.0 and installing python 2.7 (python 3.3 didn't fix the issue) fixed this issue for me.
from pygments.rb.
I also use utf-8 encoding as the default in all my files, so i have to use:
* ruby 1.9.3
* pygments 0.5.0
* python 2.7
* and switch markdown to redcarpet
Window 8.1 Pro, x64
from pygments.rb.
Unfortunately, Jekyll dropped pygments.rb support: jekyll/jekyll#6823
from pygments.rb.
Related Issues (20)
- Broken symlink in gem (find_error.py) HOT 8
- github.py is included in pygments-main HOT 2
- Possibility to add a custom lexer HOT 8
- Liquid Exception in markdown format HOT 1
- Reanimate JRuby CI
- Raku support HOT 1
- support pygments >= 2.7.1 HOT 1
- Becoming a maintainer HOT 6
- Set up Rubocop lint checking in CI
- Race condition between watchdog/main thread leads to "Thread killed" on JRuby
- Old-fashioned questions
- Add an API to query underlying Pygments version
- undefined method 'create' HOT 4
- Tests break against python3-pygments (=2.10.0+dfsg-1) HOT 2
- env: python: No such file or directory HOT 2
- Broken pipe error in Mentos HOT 19
- Update pygments to 2.14.0
- Virtual environment Pythons are ignored on Windows
- `guess()` from Ruby HOT 1
- Update Pygments HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pygments.rb.