Exception in prawn when generating a PDF from IDE
See original GitHub issueIt looking at the exception, it looks like an issue with prawn and syntax highlighting: prawn.text.formatted.wrap
I locked the trigger down to the quick-start.adoc file and reduced it to the following snippet that fails with the PDF generation in the IDE.
[source,java]
----
.exchange("http://" + Constants.REST_COMPUTE_SERVICE + "/compute", HttpMethod.PUT)
----
The project you referenced doesn’t include a PDF generation, therefore I am not sure what versions you use to create a PDF.
The IntelliJ plugin uses asciidoctorj-pdf:1.5.0-beta.4 together with the latest AsciiDoctorJ runtime.
Please use the latest versions of asciidoctorj and asciidoctorj-pdf in your maven build. If you see the same problem there, please raise an issue with asciidoctor-pdf with a minimal example (usually not asciidoctorj-pdf, as this is just a re-packaging).
Once you have a working Maven build with the latest versions and still have a failing IntelliJ plugin, please raise an issue with the plugin.
_Originally posted by @ahus1 in https://github.com/asciidoctor/asciidoctor-intellij-plugin/issues/325#issuecomment-529922968_
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (7 by maintainers)

Top Related StackOverflow Question
@gudaoxuri - I managed to trace down the AssertionError to an issue that was fixed in the latest JRuby release. I’ve updated the JRuby version included in the plugin and created a new pre-release 0.30.8.
Note: this doesn’t relate to the fonts in the PDF. To get CN fonts in the PDF you’ll need to specify a theme.
The new pre-release of the plugin is available from GitHub releases and the IntelliJ AsciiDoc EAP repository.
Please give it a try and report problems either in this issue or new issues.
For the moment it only appears within IntelliJ, not with any test case outside of it. Once I found out how to reproduce it and we can narrow down the source, we can move the issue.