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

Composite states using stateDiagram-v2 cant handle descriptions #2026

Closed
knsv opened this issue Apr 30, 2021 · 0 comments · Fixed by #2030
Closed

Composite states using stateDiagram-v2 cant handle descriptions #2026

knsv opened this issue Apr 30, 2021 · 0 comments · Fixed by #2030
Assignees
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@knsv
Copy link
Collaborator

knsv commented Apr 30, 2021

Composite states using stateDiagram-v2 cant handle descriptions. This diagram generates syntax error:

stateDiagram-v2
state "Not Shooting State" as NotShooting {
  state "Idle mode" as Idle
  state "Configuring mode" as Configuring
  [*] --> Idle
  Idle --> Configuring : EvConfig
  Configuring --> Idle : EvConfig
}

To Reproduce
https://mermaid-js.github.io/mermaid-live-editor/#/edit/eyJjb2RlIjoic3RhdGVEaWFncmFtLXYyXG5zdGF0ZSBcIk5vdCBTaG9vdGluZyBTdGF0ZVwiIGFzIE5vdFNob290aW5nIHtcbiAgc3RhdGUgXCJJZGxlIG1vZGVcIiBhcyBJZGxlXG4gIHN0YXRlIFwiQ29uZmlndXJpbmcgbW9kZVwiIGFzIENvbmZpZ3VyaW5nXG4gIFsqXSAtLT4gSWRsZVxuICBJZGxlIC0tPiBDb25maWd1cmluZyA6IEV2Q29uZmlnXG4gIENvbmZpZ3VyaW5nIC0tPiBJZGxlIDogRXZDb25maWdcbn1cbiIsIm1lcm1haWQiOnt9LCJ1cGRhdGVFZGl0b3IiOmZhbHNlfQ
Expected behavior
A clear and concise description of what you expected to happen.

@knsv knsv added Type: Bug / Error Something isn't working or is incorrect Status: Triage Needs to be verified, categorized, etc labels Apr 30, 2021
@knsv knsv self-assigned this Apr 30, 2021
@knsv knsv mentioned this issue Apr 30, 2021
3 tasks
@github-actions github-actions bot locked and limited conversation to collaborators Apr 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant