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

asciidoctor-epub3 hangs on JRuby+Windows when converts data\samples\sample-book.adoc #253

Closed
slonopotamus opened this issue Jan 24, 2020 · 6 comments
Assignees
Labels

Comments

@slonopotamus
Copy link
Contributor

Way to reproduce:

  1. asiidoctor-epub3 master branch
  2. Windows (10 in my case)
  3. JRuby (9.2.9.0 in my case)
  4. [jruby]\bin\bundle exec asciidoctor-epub3 data\samples\sample-book.adoc

Expected: sample-book.epub is created

Actual: process hangs forever

@slonopotamus
Copy link
Contributor Author

Minimized testcase:

book.adoc

= Da Book
:doctype: book

include::chapter.adoc[]

chapter.adoc:

= Teh Chapter

[source]
----
A
----

Now, try bundle exec asciidoctor-epub3 book.adoc and observe a hang.

@slonopotamus
Copy link
Contributor Author

slonopotamus commented Jan 24, 2020

Given that pygments.rb doesn't pass its own test suite on JRuby (pygments/pygments.rb#190), by powers granted to me I disable usage of pygments.rb on JRuby.

@mojavelinux
Copy link
Member

mojavelinux commented Jan 26, 2020

Pygments still works with JRuby on Linux. We have tests in Asciidoctor core and PDF that prove that. So let's not overstate this incompatibility.

@slonopotamus
Copy link
Contributor Author

Note to myself: I have no information why pygments.rb was disabled on AsciidoctorJ before cb8c61a.

@mojavelinux
Copy link
Member

There was a time very long ago that pygments.rb didn't work on JRuby. That changed as of pygments.rb 1.2. It should work.

@mojavelinux
Copy link
Member

I think this exception needs to be more specific. It should be JRuby on Windows. I expect it to work on Windows with CRuby.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants