SequencePlugin icon indicating copy to clipboard operation
SequencePlugin copied to clipboard

Plant UML Export is broken because of invalid syntax

Open TobseF opened this issue 2 years ago • 2 comments

The exported PlantUML sequence diagram cannot be rendered, because of broken syntax:

Steps to Reproduce

  1. Run Sequence Diagram out of a Kotlin function (a Unit test)
  2. Export the sequence diagram as PlantUML diagram
  3. Open the PlantUML diagram in the IntelliJ PlantUML plugin
  4. 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 ..."

2023-05-05_11h03_40

Plugin & IDE info

  • Plugin Version 3.0.4
  • IDEA Ultimate 2023.1.1.
  • Kotlin File

TobseF avatar May 05 '23 09:05 TobseF

As a workaround, the problem can be fixed by check "Skip constructors". 2023-05-05_11h24_19

TobseF avatar May 05 '23 09:05 TobseF

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.

Vanco avatar May 13 '23 02:05 Vanco