-
Notifications
You must be signed in to change notification settings - Fork 172
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
Asciidoctorj cannot load external GEMs anymore #1136
Comments
The issue is currently AsciidoctorJ it seems. See asciidoctor/asciidoctorj#1136.
Right now this is the intended behavior, and it's even tested: asciidoctorj/asciidoctorj-core/build.gradle Lines 123 to 137 in b425925
The change was introduced in AsciidoctorJ 1.6.0 with this PR: #518 So right now I would say that this is the intended behavior, and iirc we did this because an old system installation of Asciidoctor could otherwise break asciidoctorj. If my Google powers do not trick me, and requiring a gem on the GEM_PATH just adds it to the LOAD_PATH, it should be the same as passing it to asciidoctorj:
I am happy to change AsciidoctorJ in whatever direction we like, but right now I'd say that this is the intended behavior. |
I don't think asciidoctorj handles external GEMs correctly anymore. My starting point for this is asciidoctor/asciidoctor-gradle-plugin#658. After I could not figure out what the issue was in the Gradle plugin, I went straight to the asciidoctorj command-line to reproduce the issue
(The location for
GEM_HOME
might differ depending on the specific system).The results in the error
A simple
index.adoc
to use for testing is= Example bibtex Some citation: cite:[Bogus1a]
and the corresponding
biblio.bib
I tested it with Asciidoctor Ruby command-line and it works, so this is definitely an AsciidoctorJ issue.
The text was updated successfully, but these errors were encountered: