Login  Register

Re: asciidoctor and pygments not working under cygwin64

Posted by mojavelinux on Dec 27, 2019; 1:11am
URL: https://discuss.asciidoctor.org/asciidoctor-and-pygments-not-working-under-cygwin64-tp5212p7450.html

To be honest, I'm not that familiar with the cygwin environment, so I'm not really sure what to tell you. We do test Asciidoctor and Pygments together on Windows for each commit. So I know that combination works fine.

> But if I now try to install pygments.rb 0.6.3, it says there is no pygments.rb of that version anywhere.

The version of the gem is still on rubygems.org (https://rubygems.org/gems/pygments.rb/versions/0.6.3), so I'm not sure why you are getting that error.

> The last code commit I see in pygments.rb on Github is end 2017, so it looks unmaintained.

GitHub itself no longer uses Pygments for source highlighting, and since they originally started the Ruby bindings (pygments.rb), I don't expect that project is really going to go anywhere. Rouge stepped in as its replacement and has since become the recommended syntax highlighter in Ruby. It receives quite a bit of activity, esp over the past year. https://github.com/rouge-ruby/rouge

> I used pygments.rb with asciidoctor because I wrote a couple of modes for it for a couple of syntaxes we use in our standards, so moving to another syntax processor isn't that desirable (although if we get desperate...).

You're free to continue to use pygments.rb, whether it's 0.6.3 or 1.2.1. But we can't control what happens with the syntax highlighter libraries. They are going to change, and that sometimes means making a migration. Although there should be no immediate need, I would recommend starting to explore the switch from Pygments to Rouge.

Best,

-Dan

On Tue, Dec 10, 2019 at 5:09 AM wolandscat [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Dan,
I just happen to have upgraded some asciidoctor and related gems under cygwin64 under Windows 10, and hit exactly the same problem as described in the first post above. I am on Ruby 2.6.4 and pygments.rb 1.2.1. Running asciidoctor on any doc with syntax in it causes a hang.

But if I now try to install pygments.rb 0.6.3, it says there is no pygments.rb of that version anywhere.

The last code commit I see in pygments.rb on Github is end 2017, so it looks unmaintained.

I used pygments.rb with asciidoctor because I wrote a couple of modes for it for a couple of syntaxes we use in our standards, so moving to another syntax processor isn't that desirable (although if we get desperate...).

Right now my asciidoctor publishing env is broken, and I can't seem to fix it...

Any thoughts?



If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/asciidoctor-and-pygments-not-working-under-cygwin64-tp5212p7404.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux