Troubleshooting - StateSmith/StateSmith-drawio-plugin GitHub Wiki

Find Element By Diagram Id

Sometimes StateSmith will complain about a drawing element in your diagram. Maybe your transition isn't connected to another state. Maybe the event handler text was incorrect. When StateSmith does throw an error like this, it will print as much info as it has about the drawing element and also the Diagram Id of the drawing element.

Exception DrawIoException : Unterminated edge (no target). Edge diagram id:`32`, label:`DIM`

Easy with plugin v0.6.0+

Plugin version 0.6.0 added the ability to easily jump to any diagram element based on its ID. Even if it is inside a collapsed group.

find-by-id

Using older plugin

In many cases, you can find the problem by the label or other info, but sometimes you need to look at the draw.io XML file to find the offending element by Id.

<mxCell id="32" value="DIM" parent="12" source="23" edge="1"></mxCell>
<mxCell id="23" value="ON1" parent="12" vertex="1"></mxCell>

If you are using an image like MySm.drawio, you can simply view that file's XML to find an element by Diagram Id.

However, if you are using an image like MySm.drawio.svg, you can't easily see the diagram XML in the file as it is base64 encoded. Instead, click on Extras > Edit Diagram... to view the diagram XML.

troubleshoot-find-id

You can also see the Diagram Id of specific elements in draw.io:

image

View diagram XML

You sometimes may need to look at the draw.io XML to troubleshoot an issue.

If you are using a draw.io diagram like MySm.drawio, you can usually just open that file to view the diagram XML.

However, if you are using an image like MySm.drawio.svg or draw.io file compression is enabled, you can't easily see the diagram XML in the file as it is encoded. Instead, click on Extras > Edit Diagram... to view the diagram XML.

I then copy that text and paste it into a text editor to view easier.

troubleshoot-find-id

Main Troubleshooting Wiki

https://github.com/StateSmith/StateSmith/wiki/Troubleshooting

⚠️ **GitHub.com Fallback** ⚠️