SequencePlugin
SequencePlugin copied to clipboard
Plant UML Export is broken because of invalid syntax
The exported PlantUML sequence diagram cannot be rendered, because of broken syntax:
Steps to Reproduce
- Run Sequence Diagram out of a Kotlin function (a Unit test)
- Export the sequence diagram as PlantUML diagram
- Open the PlantUML diagram in the IntelliJ PlantUML plugin
- See, that the PlantUML file cannot be compiled because of a wrong syntax
Expected behavior
The exported file schould be valid
Screenshots
⚠ Exception "After create command you have to send a message to ..."
Plugin & IDE info
- Plugin Version 3.0.4
- IDEA Ultimate 2023.1.1.
- Kotlin File
As a workaround, the problem can be fixed by check "Skip constructors".

From official example:
@startuml
Bob -> Alice : hello
create Other
Alice -> Other : new
create control String
Alice -> String
note right : You can also put notes!
Alice --> Bob : ok
@enduml
the create should be A create B, same as Alice -> Other : new in above example. But in your code, CredentialHolder -> CredentialHolder : new is something wrong? Please paste your kotlin function source code, it will help me to find the bugs.