Open CSV-Tom opened 1 month ago
This is due to a change in asciidoctorj itself, but basically if you do not need to use the require
keyword as raw GEMs are now bundled into a temporary JAR. That JAR is on the load path for asciidoctorj. Just comment out
requires 'rouge'
requires 'asciimath'
requires 'asciidoctor-lists'
If I comment out the following directives, their transformation into the PDF will no longer be performed.
Example 1: Commented-out for example asciidoctor-lists
asciidoctorj {
...
// requires 'asciidoctor-lists' Commented out
...
}
PDF Result oflist-of::listing[]
:
List of code snippets
list-of::listing[]
Example 2: Commented-in for example asciidoctor-lists
asciidoctorj {
...
requires 'asciidoctor-lists'
...
}
PDF Result of list-of::listing[]
:
List of code snippets
Create a basic PDF document using Prawn
Is a connection or configuration still missing here?
Unfortunately, this approach does not resolve the second error message mentioned earlier.
Error message 1 is related to issue #718, and I've successfully used markslater's workaround to load pygments.rb
. Both OP's solution and ysb33r's suggestion would lead to some other errors for me.
I am in the process of evaluating the new Asciidoctor-Gradle-Toolchain 4.0.3. I have encountered two challenges that I could not solve right away. Perhaps I took a wrong turn somewhere. Could you provide me with feedback or point me in the right direction where I might have gone wrong?
I managed to solve the first issue. I'm really struggling with the second one.
Environment
Additionally tested on Ubuntu 22.04 and Ubuntu 24.04 within Docker.
Example Code
Error Message 1: LoadError: (LoadError) no such file to load -- asciidoctor-lists
Solution: The problem could be solved by adding
withGemJar asciidoctorGemsJar
within the Asciidoctor task:Error Message 2: ERROR: Failed to build gem native extension.
The following error occurs after asciidoctor-mathematical has been included: