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

uri:classloader:/gems/prawn-icon-3.0.0/lib/prawn/icon/font_data.rb:9: warning: The Psych YAML extension failed to load #737

Open
opolo-dao opened this issue Aug 28, 2024 · 2 comments

Comments

@opolo-dao
Copy link

I use following config of plugins
id "org.asciidoctor.jvm.base" version "4.0.3" id 'org.asciidoctor.jvm.convert' version '4.0.3' id 'org.asciidoctor.jvm.pdf' version "4.0.3" id 'org.asciidoctor.jvm.gems' version '4.0.3'

After i updated to this version i can't build pdf due Psych YAML error.
Execution failed for task ':asciidoctorPdf'.

A failure occurred while executing org.ysb33r.grolifant.internal.v6.jvm.worker.InternalWorkerAppExecutor
org.asciidoctor.gradle.remote.AsciidoctorRemoteExecutionException: ERROR: Running Asciidoctor whilst attempting to process [masked]\ApiDescription.adoc using backend pdf

Task configuration:
asciidoctorPdf { doNotTrackState("Need to run on local machine") sourceDir file('documentation') baseDirFollowsSourceFile() sources { include 'internal/*.adoc', 'external/*.adoc' } outputDir file("$buildDir/docs") resources { from('documentation/**') { include '**.png', '**.jpg' } } }

@opolo-dao
Copy link
Author

I have found the issue. Running asciidoctorGemsPrepare return more detailed error
oadError: bad SnakeYAML version 2.2, required 1.21 or higher; check your CLASSPATH for a conflicting jar load_ext at org/jruby/ext/jruby/JRubyUtilLibrary.java:216
Other plugin depends on SnakeYAML version 2.2. What to do to to fix it?

@surfing
Copy link

surfing commented Dec 10, 2024

I fixed it by upgrading to the latest jruby version

asciidoctorj {
    jrubyVersion = '9.4.9.0'
}

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

No branches or pull requests

2 participants