10000 Gantt: Task duration fails silently if it contains extra characters like e, 8, +, =, ...etc · Issue #6586 · mermaid-js/mermaid · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Gantt: Task duration fails silently if it contains extra characters like e, 8, +, =, ...etc #6586

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

Open
NourBenz opened this issue May 11, 2025 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@NourBenz
Copy link
Contributor
NourBenz commented May 11, 2025

Description

When defining a Gantt task duration like 24d, everything works as expected. However, if the duration string contains extra characters (e.g., 24de, 24d+, 24d=, 24d7), the task silently fails to render.

This issue allows the diagram to continue rendering, but omits the faulty task without any visible warning or error. This makes debugging very difficult.

Steps to reproduce

  1. Go to Mermaid Live Editor – Develop
  2. Paste the following Gantt diagram code:
gantt
    title A Gantt Diagram
    dateFormat YYYY-MM-DD
    section Section
        A task          :a1, 2014-01-01, 30d
        Another task    :after a1, 20d
    section Another
        Task in Another :2014-01-12, 12d
        another task    :24de

  1. Run the code
  2. Observe that another task of section Another is not rendered, but no error is displayed

Screenshots

Image

Image

Code Sample

gantt
    title A Gantt Diagram
    dateFormat YYYY-MM-DD
    section Section
        A task          :a1, 2014-01-01, 30d
        Another task    :after a1, 20d
    section Another
        Task in Another :2014-01-12, 12d
        another task    :24d

Setup

Mermaid version: 11.6.0
Browser: Chrome 124
OS: Windows 11

Suggested Solutions

No response

Additional Context

No response

@NourBenz NourBenz added Type: Bug / Error Something isn't working or is incorrect Status: Triage Needs to be verified, categorized, etc labels May 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

1 participant
0