asciidoctor / asciidoctor-intellij-plugin

AsciiDoc plugin for products on the IntelliJ platform (IDEA, RubyMine, etc)
https://intellij-asciidoc-plugin.ahus1.de/
Apache License 2.0
354 stars 145 forks source link

bpmn diagram failed to load #1363

Open erictioh opened 1 year ago

erictioh commented 1 year ago

Observed vs. expected behavior

When putting text like this in the adoc file content, it should generate the bpmn diagram corresponding from bpmn::test.bpmn[target=eric, format=svg, opts=inline] however the following error was thrown on the preview pane.

Failed to generate image: Unknown error (SystemCallError) - <STDERR>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:bioc="http://bpmn.io/schema/bpmn/biocolor/1.0" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_0rkpvk7" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.8.0">
  <bpmn:collaboration id="Collaboration_0e7qwy6">
    <bpmn:participant id="Participant_06mlmov" name="ZSmart" processRef="Process_0dk0m1p"/>
    <bpmn:participant id="Participant_0bw1cs9" name="Go Biz" processRef="Process_11m847a"/>
    <bpmn:participant id="Participant_1cjx3i1" name="Telesales Team" processRef="Process_0s9tjww"/>
    <bpmn:participant id="Participant_1o0uac0" name="Customer" processRef="Process_0qlnk4g"/>
    <bpmn:participant id="Participant_1um5pzu" name="FPX" processRef="Process_0rbceye"/>
    <bpmn:messageFlow id="Flow_1buo8qe" sourceRef="Activity_1qfdtp3" targetRef="Activity_1nafmia"/>
    <bpmn:messageFlow id="Flow_11seruy" sourceRef="Activity_0mairsp" targetRef="Activity_1wlm0ww"/>
    <bpmn:messageFlow id="Flow_11pv923" sourceRef="Activity_1wlm0ww" targetRef="Activity_0ou4p7x"/>
    <bpmn:messageFlow id="Flow_0w7qbqy" sourceRef="Activity_0ou4p7x" targetRef="Activity_157z52e"/>
    <bpmn:messageFlow id="Flow_0oq7kub" sourceRef="Activity_19vu4su" targetRef="Activity_13vm7bx"/>
    <bpmn:messageFlow id="Flow_0gxclqe" sourceRef="Activity_13vm7bx" targetRef="Activity_1hv11sj"/>
    <bpmn:messageFlow id="Flow_16shrew" sourceRef="Activity_07204gg" targetRef="Activity_1hindhm"/>
    <bpmn:messageFlow id="Flow_094n7ko" sourceRef="Activity_0qz9zsz" targetRef="Activity_0ksjxg0"/>

You can see that the first row was the unknown error that it thrown, and the subsequent are my bpmn file content (which proved that the reading of the file was successful but somehow the converter doesn't work

Expected behavior is it should display the BP diagram inline. The exact same thing works using asciidoctor -r asciidoctor-diagram sample.adoc which has the above line of code in the sample.adoc file.

Steps to reproduce

  1. Install pycharm
  2. Install asciidoc plugin from the pycharm setting
  3. From the pycharm setting click to install the diagram extension
  4. Open the sample.adoc file
  5. Observe the error that i described above

Environment

Plugin Version: 0.38.16

IntelliJ Details: PyCharm 2022.2.3 (Community Edition) Build #PC-222.4345.23, built on October 10, 2022 Runtime version: 17.0.4.1+7-b469.62 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Windows 11 10.0 GC: G1 Young Generation, G1 Old Generation Memory: 2048M Cores: 16 Non-Bundled Plugins: org.asciidoctor.intellij.asciidoc (0.38.16)

ahus1 commented 1 year ago

@erictioh - thanks for sharing these details. Could you please add a complete valid BPMN file to this issue so I can test it locally? The BPMN above seems incomplete to me, some XML tags don't close. Thanks!

erictioh commented 1 year ago

@erictioh - thanks for sharing these details. Could you please add a complete valid BPMN file to this issue so I can test it locally? The BPMN above seems incomplete to me, some XML tags don't close. Thanks!

The xml tag definitely incomplete because i only put in some crop of text. Here is the complete bpmn file for your test. test2.zip

erictioh commented 1 year ago

The bpmn file was created from camunda modeler 5.8.0 image