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

(SystemCallError) Unknown error 123 - FindFirstFile with AsciidoctorJ-PDF on Win10 #4745

Closed
dzwicker opened this Issue Aug 20, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@dzwicker

dzwicker commented Aug 20, 2017

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:

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)
@dzwicker

This comment has been minimized.

Show comment
Hide comment
@dzwicker

dzwicker Aug 20, 2017

@enebo i created a new issu as you suggested in #3957

dzwicker commented Aug 20, 2017

@enebo i created a new issu as you suggested in #3957

@enebo enebo added this to the JRuby 9.1.13.0 milestone Aug 21, 2017

enebo added a commit that referenced this issue Aug 30, 2017

Fixes #4745. (SystemCallError) Unknown error 123 - FindFirstFile with…
… 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.

@enebo enebo closed this in fd5e414 Aug 30, 2017

@enebo

This comment has been minimized.

Show comment
Hide comment
@enebo

enebo Aug 30, 2017

Member

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).

Member

enebo commented Aug 30, 2017

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment