Login  Register

asciidoctor and pygments not working under cygwin64

Posted by BigBlackDog on Jan 19, 2017; 10:15am
URL: https://discuss.asciidoctor.org/asciidoctor-and-pygments-not-working-under-cygwin64-tp5212.html

I have cygwin64 running on my win10 machine. I've installed Ruby v2.2.5p319, Python 2.7.12 and the following gems:

asciidoctor (1.5.5)
coderay (1.1.1)
json (1.8.2)
minitest (5.4.3, 4.7.5)
multi_json (1.12.1)
power_assert (0.2.2)
pygments.rb (1.1.1)
rake (10.4.2)
rdoc (4.2.0)
test-unit (3.0.8)

pygemts ist running at version 2.0.2-1. (edited post)

i have this simple document to test the syntax-highlighting with pygments:

= Document Title
Doc Writer <doc@example.com>
:doctype: book
:reproducible:
:source-highlighter: pygments
:listing-caption: Listing

A simple http://asciidoc.org[AsciiDoc] document.

== just a code sample
.Create a basic PDF document using Prawn
[source,ruby]
----
require 'prawn'

Prawn::Document.generate 'example.pdf' do
  text 'Hello, World!'
end
----

now, when i try and generate a html file by running asciidoctor test.adoc ... i get no output and the task keeps running and running and running without generating any output.

when i change the highligher to coderay i get the desired output. but i like the pygments output more and want to use it.

It was running on an older machine with earlier versions of everything.

can someone help me figure out whats going wrong?

thank you!