When trying to render this document AsciidoctorJ should produce a PDF document and it does on OSX.
Actual Behavior
On Win10 this fails with this exception:
Caused by: org.jruby.exceptions.RaiseException: (SystemCallError) Unknown error (SystemCallError) 123 - FindFirstFile
at RUBY.symlink?(uri:classloader:/jruby/kernel/file.rb:141)
at RUBY.<module:Prawn>(uri:classloader:/gems/prawn-2.2.2/lib/prawn.rb:11)
at RUBY.<main>(uri:classloader:/gems/prawn-2.2.2/lib/prawn.rb:9)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:961)
at RUBY.(root)(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1)
at RUBY.<main>(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:961)
at RUBY.(root)(uri:classloader:/gems/asciidoctor-pdf-1.5.0.alpha.16/lib/asciidoctor-pdf/converter.rb:3)
at RUBY.<main>(uri:classloader:/jruby/kernel/kernel.rb:1)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:961)
at RUBY.require_relative(uri:classloader:/jruby/kernel/kernel.rb:13)
at RUBY.<main>(uri:classloader:/gems/asciidoctor-pdf-1.5.0.alpha.16/lib/asciidoctor-pdf.rb:3)
The text was updated successfully, but these errors were encountered:
… AsciidoctorJ-PDF on Win10
doh...9.1.9.0 was the first version to actually start calling this .symlink? impl
and it does not work with uris. A comedy of errors I think ended up masking this
implementation out in 9.1.3.0.
This rolls with the original patch @headius made but I moved some stuff around a
tiny bit.
See commit for details but tl;dr was we wallpapered over our windows File.symlink? until 9.1.9 so it was never actually defined (thus never failed with uris).
Environment
Win 10, Java 1.8.0_141, JRuby 9.1.12.0
AsciidoctorJ 1.5.6, asciidoctorj-pdf 1.5.0-alpha.16
Expected Behavior
When trying to render this document AsciidoctorJ should produce a PDF document and it does on OSX.
Actual Behavior
On Win10 this fails with this exception:
The text was updated successfully, but these errors were encountered: