question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception in prawn when generating a PDF from IDE

See original GitHub issue

It 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:closed
  • Created 4 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
ahus1commented, Sep 30, 2019

@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.

1reaction
ahus1commented, Sep 28, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

prawn error reading generated pdf - Stack Overflow
Have had prawn successfully running and generating pdfs in an application for the last 4 years without any issue. Files are being generated...
Read more >
Recent Comments - RailsCasts
You can background a JPG or PNG in Prawn, but it does have that resolution issue. ... I know how to send an...
Read more >
Ruby on Rails Tutorial => Debugging in your IDE
Every good IDE provides a GUI for interactively debugging Ruby (and thus Rails) applications where you can add breakpoints, watches, auto pausing on...
Read more >
Junit Test Report Xml Format Pdf (2022) - www.online.utsa.edu
Merely said, the junit test report xml format pdf is universally compatible afterward any devices to read. The Oxford Handbook of Crime Prevention....
Read more >
Creating PDF with Java and iText - Tutorial - Vogella.com
This article demonstrate how to create PDF files with Java and the iText library. ... addContent(document); document.close(); } catch (Exception e) { e....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found