precise state machine visualizations #65
kgignatyev
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Hello! Yes, those if/else statements are blockers for current visualization. Code parsing approach may handle such cases, but it seems that it may be broken also easily by user helper functions, typealiases, etc (any syntax change or complication). I thought about adding ability to provide meta data for current approach, so it can help with if/else statements. But it sort of code duplication. And may lead to mistakes. I cannot see reliable solution now. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I like your library a lot, but it falls a bit short on state machine visualization, which is understandable, because it is based on runtime based sm interrogation, and if/else statemets are impossible to trace.
Did you consider using approach employed by this SML? (now defunct unfortunately) :
https://github.com/open-jumpco/kfsm-viz
It also took the idea from SMC project (which we are using currently): a SM definition lives in a separate special file which has predictable and limited (kotlin) syntax, and all the work is delegated to a companion instance. This way a full state diagram can be visualized, including tricky if/else conditions.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions