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

Not compatible with pygments.rb 0.5.0 on Windows anymore #2556

Closed
madhur opened this issue Jun 29, 2014 · 7 comments · Fixed by rtomayko/posix-spawn#57
Closed

Not compatible with pygments.rb 0.5.0 on Windows anymore #2556

madhur opened this issue Jun 29, 2014 · 7 comments · Fixed by rtomayko/posix-spawn#57

Comments

@madhur
Copy link

madhur commented Jun 29, 2014

I have pygments 0.5.0 installed on Windows. I get this error while running Jekyll

d:/portablejekyll/x86/ruby/lib/ruby/2.0.0/rubygems/dependency.rb:296:in `to_specs': Could not find 'pygments.rb' (~> 0.6.0) - did find: [pygments.rb-0.5.0] (Gem::LoadError)
        from d:/portablejekyll/x86/ruby/lib/ruby/2.0.0/rubygems/specification.rb:1196:in `block in activate_dependencies'
        from d:/portablejekyll/x86/ruby/lib/ruby/2.0.0/rubygems/specification.rb:1185:in `each'
        from d:/portablejekyll/x86/ruby/lib/ruby/2.0.0/rubygems/specification.rb:1185:in `activate_dependencies'
        from d:/portablejekyll/x86/ruby/lib/ruby/2.0.0/rubygems/specification.rb:1167:in `activate'
        from d:/portablejekyll/x86/ruby/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:48:in `gem'
        from d:/PortableJekyll/x86/ruby/bin/jekyll:22:in `<main>'

If I install pygments 0.6.0, I get his error

Configuration file: D:/github/madhur.github.com/_config.yml
            Source: .
       Destination: ./_site
      Generating...
d:/portablejekyll/x86/ruby/lib/ruby/gems/2.0.0/gems/posix-spawn-0.3.6/lib/posix/spawn.rb:162: warning: cannot close fd before spawn
  Liquid Exception: No such file or directory - /bin/sh in _posts/2011-06-03-reverseengineerchrome.markdown
                    done.
@parkr
Copy link
Member

parkr commented Jun 29, 2014

Yes, we bumped Jekyll to pygments.rb v0.6.0! There are some new lexers I wanted to offer to Jekyll users and SemVer calls for stricter versioning when not a fully stable 1.0 release so the bump in our gemspec was necessary in order to offer 0.6.x.

Please file an issue with them about this error: https://github.com/tmm1/pygments.rb May as well ask them to move forward with us, rather than sitting on old code (that's why we upgraded Liquid versions, too). I'm sorry this is a pain!

As an alternative, you're free to use the rouge highlighter if that is an amenable solution.

@parkr
Copy link
Member

parkr commented Jun 29, 2014

Looking into it further, it doesn't look like Pygments 0.6.0 uses /bin/sh, but rather Posix-Spawn does.

It looks like posix-spawn uses cmd.exe properly but I have no idea if that's the latest version.

@ahmgeek
Copy link

ahmgeek commented Aug 25, 2014

so guys, i still receive the error !

@ellemalala
Copy link

What I did was install another highlighter. I installed rouge: gem install rouge
Then I added in my _config.yml this: highlighter: rouge

@ahmgeek
Copy link

ahmgeek commented Aug 25, 2014

@Dreysha55 👍 ❤️

@itsjef
Copy link

itsjef commented Sep 14, 2014

@Dreysha55 you are my savior <3 (y)

@michaelthorne
Copy link

Thanks @Dreysha55! 👍

@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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants