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

autonumber in sequence diagram not working #88

Open
DuncanButler opened this issue Jul 24, 2023 · 1 comment
Open

autonumber in sequence diagram not working #88

DuncanButler opened this issue Jul 24, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@DuncanButler
Copy link

Describe the bug
renders graph correctly, but output console reports error in diagram

To Reproduce
from mermaid book, valid script shows issue:
`---
title: User Signup Flow

sequenceDiagram
autonumber
actor Browser
participant Sign Up Service
participant User Service
participant Kafka

Browser->>Sign Up Service: GET /sign_up
activate Sign Up Service
Sign Up Service-->>Browser: 200 OK (HTML Page)
deactivate Sign Up Service

Browser->>Sign Up Service: POST /sign_up
activate Sign Up Service
Sign Up Service->>Sign Up Service: Validate input

alt invalid input
    Sign Up Service-->>Browser: Error
else valid input
    Sign Up Service->>User Service: POST /users
    activate User Service
    User Service--)Kafka: User Created Event Published
    note left of Kafka: other services take action based on this event
    User Service-->>Sign Up Service: 201 Created (User)
    deactivate User Service
    Sign Up Service-->>Browser: 301 Redirect (Login page)
end
deactivate Sign Up Service

`
Expected behavior
shoud display numbers for each sequence line

Side note:
This is the only error I have found so far, its been a bonus being able to work with this extension installed, thanks for all the hard work developing this tooling to handle mmd files.

@DuncanButler DuncanButler added the bug Something isn't working label Jul 24, 2023
@DuncanButler
Copy link
Author

DuncanButler commented Jul 24, 2023

autonumber does not work in the mermaid live editor either, but editing the config and adding,

"sequence": { "showSequenceNumbers": true }

does make the number appear correctly.

it would be nice to have either option in the editor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant