diagrams icon indicating copy to clipboard operation
diagrams copied to clipboard

Sequence diagram: word 'Participant' causes an exception

Open kongakong opened this issue 5 years ago • 0 comments

If you add a line Bob-->Participant: I am good thanks! to tests/fixtures/sequence/simple.sequence,

i.e.


Alice->Bob: Hello Bob, how are you?
Note right of Bob: Bob thinks
Bob-->Participant: I am good thanks!
Bob-->Alice: I am good thanks!

then run ./bin/diagrams.js sequence tests/fixtures/sequence/simple.sequence

you will get this error

sequence:stdout: Parse error on line 3:
...b: Bob thinksBob-->Participant: I am go
----------------------^
Expecting 'ACTOR', got 'participant'

sequence:stderr: Parse error on line 3:
...b: Bob thinksBob-->Participant: I am go
----------------------^
Expecting 'ACTOR', got 'participant'

If you change Participant to something else like Tom, it works again.

kongakong avatar Jan 16 '20 00:01 kongakong