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

can't work with more than one generic in UML diagram #4565

Closed
abhashksingh opened this issue Jun 30, 2023 · 7 comments
Closed

can't work with more than one generic in UML diagram #4565

abhashksingh opened this issue Jun 30, 2023 · 7 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@abhashksingh
Copy link

Description

I asked this question on stack-overflow here.
I want to represent

map<int,std::string> pMap;

on a UML diagram.
I tried

std::map~int,string~ pMap;

this results in crash of Mermaid.

Steps to reproduce

Copy paste the below code to the mermaid editor

classDiagram

class Args{
    std::map ~int,string~ pMap;
}

Screenshots

No response

Code Sample

classDiagram

class Args{
    std::map ~int,string~ pMap;
}

Setup

  • Mermaid version: 10.2.3
  • Browser and Version: [Chrome, Edge, Firefox,Brave]

Suggested Solutions

No response

Additional Context

I am ok with a workaround as well.

@abhashksingh abhashksingh added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Jun 30, 2023
@Yokozuna59
Copy link
Member

Yokozuna59 commented Jun 30, 2023

duplicate of #4431, #4555, #4555 and #3287. It should be resolved in #4534.

@GitSparTV
Copy link

GitSparTV commented Jul 2, 2023

It doesn't affect commas only. I caught infinite loop on such example:

classDiagram
    class A {
        -a~b::c~ d
    }

Found fun walkaround, only for class names but still: &lt; and &gt;

@jgreywolf
Copy link
Contributor

I just added test case specifically for this, and yes it will be resolved with #4534

@jgreywolf
Copy link
Contributor

Please confirm if this has been resolved with 10.5.0

@abhashksingh
Copy link
Author

Mermaid Live Editor doesn't support 10.5.0 yet. Hence unable to do it.
Please tell me how to use 10.5.0.

@Yokozuna59
Copy link
Member

@abhashksingh You may use this link: https://deploy-preview-4900--mermaid-js.netlify.app/

It's a preview for the live editor from one of the latest PRs.

@abhashksingh
Copy link
Author

yeah it works on 10.5.0. Thanks @Yokozuna59 for the link.

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

4 participants