Closed rajivr closed 1 year ago
Hello,
Thanks for reporting this issue! I'm using a slightly older version of PlantUML and I cannot reproduce the bug. Can you test with the latest version of PlantUML?
Note that if moving the note to the end of the definition is enough to make it works, that's an easy patch for Sismic ;-)
If the issue is due to the fact that we did not take into account notes / comments in the yaml files for the plantuml generation, then I guess the fix could be to ignore (or temporarily remove) all commented lines before actually running the PlantUML generator? Asking users to move all comments in their yaml files to the end does not seem to be a user-friendly solution?
From what I understood, that's not the situation : when the preamble of a state chart is included in the plantuml output (in the form of a note), it does not work except if the note is moved after state definitions. I'm waiting for a confirmation but I already have a potential fix locally (basically to export all notes after state definitions).
Thanks for reporting this issue! I'm using a slightly older version of PlantUML and I cannot reproduce the bug. Can you test with the latest version of PlantUML?
@AlexandreDecan @tommens Thanks for the quick reply!
The error can easily be reproduced on the PlantUML Online Server.
The above link will show you the error that I am seeing.
Thanks for sharing this! This seems to confirm what I thought: more "recent" versions of PlantUML require "notes" related to states to be defined after state definition. I'll test my local fix and release it ASAP.
Concerning the second "issue" (from the yaml file: "Even though there are two final states - Error and Done, plantuml shows it as one done state.") there's unfortunately nothing I can do about this, since that's a limitation from PlantUML (only one final state can exist in a same state) :-/
Release 1.6.4 will be soon (a few minutes at most) available on PyPI.
Concerning the second "issue" (from the yaml file: "Even though there are two final states - Error and Done, plantuml shows it as one done state.") there's unfortunately nothing I can do about this, since that's a limitation from PlantUML (only one final state can exist in a same state) :-/
Thanks for quick fix on this issue @AlexandreDecan!
I do have a suggestion for you and @tommens. :-)
It would be really awesome if you can create a course on "Statecharts from the ground up!" where you teach the fundamental data structures and design considerations for implementing statecharts.
I would love to attend such a course and I also think it would be a very useful skill for programmers to have when they encounter complex design problems.
@rajivr if you were looking for a tutorial on how to create statecharts from scratch, I have videos on this, using another visual tool called Yakindu (now rebranded into Itemis Create). This should be a good entry point for people wishing to learn how to use and create statecharts. Is this what you were looking for? https://www.youtube.com/playlist?list=PLmHMvhX5wK_aohX5sOeAMogFDwlc3gJYR
I have a sismic yaml file that I use to visualize with
sismic-plantuml
.When I do
The generated uml file can no longer be visualized using plantuml as it generates a parsing error. Here is the gist of the file.
However, if I move the
note
to the end of the uml file, it parses correctly.Here is the gist to the working file.