Skip to content

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

@robertpanzer

Description

@robertpanzer

Environment

Win 10, Java 1.8.0_65, JRuby 9.1.2.0
AsciidoctorJ 1.6.0-alpha.3 i.e. no gems installed but packaged in jars like:
Asciidoctor 1.5.5
Prawn 1.3.0

Expected Behavior

When trying to render this document AsciidoctorJ should produce a PDF document and it does on OSX.

Actual Behavior

Create this document named test.adoc:

= Test document

Test

Download AsciidoctorJ 1.6.0-alpha.3 from http://jcenter.bintray.com/org/asciidoctor/asciidoctorj/1.6.0-alpha.3/:asciidoctorj-1.6.0-alpha.3-bin.zip, unpack it and invoke asciidoctorj -b pdf ..../test.adoc.

On Win10 this fails with this exception:

c:\Temp\asciidoctorj-1.6.0-alpha.3\bin>asciidoctorj -b pdf c:\temp\test.adoc
Exception in thread "main" org.jruby.exceptions.RaiseException: (SystemCallError) Unknown error 123 - FindFirstFile
        at RUBY.symlink?(uri:classloader:/jruby/kernel/file.rb:127)
        at RUBY.<module:Prawn>(uri:classloader:/gems/prawn-1.3.0/lib/prawn.rb:15)
        at RUBY.<top>(uri:classloader:/gems/prawn-1.3.0/lib/prawn.rb:11)
        at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:944)
        at RUBY.(root)(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1)
        at RUBY.<top>(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55)
        at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:944)
        at RUBY.(root)(uri:classloader:/gems/asciidoctor-pdf-1.5.0.alpha.11/lib/asciidoctor-pdf/converter.rb:3)
        at RUBY.(root)(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1)
        at RUBY.<top>(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55)
        at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:944)
        at RUBY.require_relative(uri:classloader:/jruby/kernel/kernel.rb:13)
        at RUBY.<top>(uri:classloader:/gems/asciidoctor-pdf-1.5.0.alpha.11/lib/asciidoctor-pdf.rb:3)

Side note: I actually wanted to report an error that the build of AsciidoctorJ does not pass on Win10 because the source highlighter rouge cannot be found. Therefore I wanted to see if I also have this problem with the packaged version of AsciidoctorJ, but it turns out I don't even get that far.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions