-
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
org.jruby.exceptions.RaiseException: (TypeError) can't convert nil into String #229
Comments
Could you point me to the source you are running this one. Disclaimer...Asciidoctor PDF needs to see more real world examples to flesh out all the edge cases (PDF generation is a lot tougher than HTML). On the upside, we're ready to fix those issues rapidly, so bring it on! |
I extracted the relevant parts into an example project you can find here: https://github.com/olivergierke/asciidoctor-pdf-example What's also weird though is that the EPUB module seems to have issues with the level offsets but that's probably something worth reporting in a separate ticket. |
Thanks @olivergierke! I'll have a look asap! |
Have you tried without maven plugin? Or with native Ruby gem (if it is possible of course). I said that to try to see if the problem is on the Maven plugin, on asciidoctorj or in asciidoctor-pdf. |
I'm quite confident the AsciidoctorJ PDF issues & Asciidoctor PDF (Ruby) |
I've tried following the instructions here but failed on the
Feels a bit like I am getting into jak-shaving mode here :). |
Ok then let's see what's happen on both sides :) |
BTW Dan I think we should create two more labels one called asciidoctor-pdf and another one asciidoctor-epub3, because currently all implementations share the same repo and it would be helpful to categorize the issues. |
@lordofthejars We could certainly do that, but I would rather just have them filed in the upstream issue tracker and label the one here as "tracking". |
Btw, I'll dive into this issue later today and try to provide some insight. |
Aha! I located the problem. You have sectids disabled, yet the PDF converter relies on them to create internal references. What I can probably do is force this attribute to be enabled in the PDF backend since they are completely internal to the PDF. I'll file an issue and link it here. |
asciidoctor/asciidoctor-pdf#70 Btw, the simple solution here is to enable sectids explicitly in the configuration for pdf in your pom.xml. |
Do you think we can do something in asciidoctorj like setting it or you prefer to have it in Asciidoctor core. |
We can do a submodule release of the AsciidoctorJ PDF component once there is a new alpha release available of Asciidoctor PDF. |
Let me sort out how I'm going to address it in Asciidoctor PDF. If I decide it's something that AsciidoctorJ could help with, I'll definitely let you know. |
ok perfect. If not we must remember to close this issue :). |
The upstream issue is fixed and released, so this can now be closed. |
I just tried to use
asciidoctorj-pdf
from the Asciidoctor Maven Plugin in version 1.5.0. I basically added the pdf dependency to the plugin and added an execution with backendpdf
. HTML, Docbook and EPUB run fine. When running the build with-X
I get this stacktrace (partial).Anything on my side I am doing wrong or wanna check my input documents for?
The text was updated successfully, but these errors were encountered: