Closed patmalcolm91 closed 1 year ago
Thank you for taking the time to post an issue and providing an example. From first looks it could definitely be the code that transforms xstate to smcat/dot.
Lately I’m also having trouble with rendering some FSM graphs but haven’t had the time to look into it.
I’ll look into it but you have to give me some time.
Thanks for the quick response, @sonntam. That's no problem, it is not an urgent issue since it's only the visualization and not the functionality which is affected.
So I took a quick look at the output of the smcat code generator and fed it to the online viewer.
It seems smcat cannot handle the space character in your state "Tentatively Occupied". So I think I just have to do some kind of identifier sanitation. Should be no problem.
A workaround for you for the time being: Delete all whitespace characters from your state names.
I can confirm that the workaround does indeed work. Thanks a lot for the quick solution!
You're welcome. It should also be now fixed in V1.3.2.
I'm receiving a strange syntax error when trying to render my state machine using smcat. Only the rendering is affected, and the machine node works perfectly otherwise. Since the error message doesn't seem to relate in any meaningful way to my machine definition code, my guess is that the error has something to do with the way that the code is converted into the right format for smcat, hence why I am posting the issue here rather than smcat's repo. Here is my code:
And here is the error message from the console log:
Any help in solving this issue would be greatly appreciated!