The program should be able to gracefully handle directives that do not have an associated message yet (sort of like putting participant or actor at the beginning of the diagram), and ideally it should handle having the create/destroy being placed anywhere in the diagram (which will be important for #4707 to be implemented properly). This issue does not surface if you turn off auto-sync, or if you copy and paste correct code into the editor.įundamentally, I believe this is an issue with how the creation / destroy directives are handled. I spent about 15 minutes trying to figure out why I kept getting the error for a name I had never used in my diagram, and had deleted all references to. In practice, this means that if you manually type in create participant example - then the code would detect create participant e and then lock up with an error. The Live site's "auto sync" mode refreshes the diagram after every keypress. This presents a serious problem with the functionality of the Live site (and will likely also impact other live viewers like The VS Code extension when it is updated). Once this error has occurred, the error will persist in the cache until it is cleared. ![]() As a result, if you type create participant T before you type A -> T: example then the code will error and say Error: The created participant T does not have an associated creating message after its declaration. These requirements are not the clearest in the documentation, especially when it comes to the order of typing things. you cannot reuse existing participant/actor names.you must exactly match the name of the participant/actor being created/destroyed.you must put the directive right before the first/final use of a participant/actor.With the new create/destroy directives for sequence diagrams, the syntax is extremely precise: This is a duplicate of mermaid-js/mermaid-live-editor#1294 but I think the issue is in the core mermaid functionality, not in how the live site handles it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |