Skip to content
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

AFX 1.5.4 - PlantUML not rendered correctly when adoc file is opened #268

Open
tobigun opened this issue Nov 17, 2016 · 1 comment
Open

Comments

@tobigun
Copy link

tobigun commented Nov 17, 2016

If a document with inline PlantUML is opened, the PlantUML is not rendered and only a placeholder (box with a cross inside) is displayed.

To render the PlantUML the PlantUML source code has to be changed. Changes to the document or just adding whitespace to the PlantUML code does not trigger the rendering of the images.

If a document contains multiple PlantUML diagrams the source-code of every diagram has to be changed to display them.
As git is used in my project I do not want to check-in the generated images.

Example:

= Test

== Section

[plantuml,~seq,png]
--
Actor1 -> Actor2: test
--

The image is just rendered if you change for example "Actor1" to "A ctor1" and back to "Actor1".

Before 1.5.4 that problem only occurred when relative paths were used (e.g. "!include ./file.iuml"). After loading the document, the relative paths were resolved relative to the AsciidocFX path (e.g. "C:\Programs\AsciiDocFX\file.iuml") and not to the path of the adoc document ("[path-to-adoc]\file.iuml"). After changing the PlantUML source, the paths were correctly resolved relative to the adoc document.

@wfouche
Copy link
Contributor

wfouche commented Nov 18, 2016

Hi @tobigun, the workaround I'm using (when not submitting the generated UML images to SVN/Git/Perforce), is just to open AsciidocFX, and wait a short while for the UML image files to be created on disk, and then to close AsciidocFX and open it again. The second time it is opened all the UML images are correctly displayed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants