Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sequence diagram: word 'Participant' causes an exception #26

Open
kongakong opened this issue Jan 16, 2020 · 0 comments
Open

Sequence diagram: word 'Participant' causes an exception #26

kongakong opened this issue Jan 16, 2020 · 0 comments

Comments

@kongakong
Copy link

kongakong commented Jan 16, 2020

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 kongakong changed the title Sequence diagram: word 'Paricipant' Sequence diagram: word 'Participant' causes an exception Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant