Re: asciidoctor and pygments not working under cygwin64
Posted by
mojavelinux on
Jan 25, 2017; 8:52am
URL: https://discuss.asciidoctor.org/asciidoctor-and-pygments-not-working-under-cygwin64-tp5212p5230.html
The pygments.rb recently underwent an internal change to support Ruby >= 2.4 and JRuby. It no longer uses posix/spawn to invoke Python. Now it just uses popen4. There's a chance this change has caused a problem on Windows. But I run the Jekyll AsciiDoc tests on AppVeyor, which include calls to Pygments, and it works fine.
If you continue to have a problem, you probably need to report this to the pygments.rb project since Asciidoctor is simply delegating to that library.
You might try switching to Ruby 2.3 or 2.4, though I'm not confident that's where the issue is.
The other thing you can try is to install pygments.rb 0.6.3. This version will work on Ruby < 2.4.
$ gem uninstall pygments.rb
gem install pygments.rb --version 0.6.3
That should at least restore the old behavior.
Cheers,