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

Generic class syntax throws error when nested in namespace #4578

Closed
GitSparTV opened this issue Jul 2, 2023 · 1 comment · Fixed by #5098
Closed

Generic class syntax throws error when nested in namespace #4578

GitSparTV opened this issue Jul 2, 2023 · 1 comment · Fixed by #5098
Assignees
Labels
Graph: Class Status: Approved Is ready to be worked on Type: Bug / Error Something isn't working or is incorrect

Comments

@GitSparTV
Copy link

GitSparTV commented Jul 2, 2023

Description

Mermaid refuses to render generic class (tildes) when used in namespace

Steps to reproduce

  1. Render specified code sample
  2. Expect error

Screenshots

image

Code Sample

classDiagram

namespace space {
    class Square~Shape~{
        int id
        List~int~ position
        setPoints(List~int~ points)
        getPoints() List~int~
    }
}

Setup

  • Mermaid version: 10.2.3 and 10.2.4
  • Browser and Version: Safari 16.6

Suggested Solutions

No response

Additional Context

Throws only when generic syntax is used in class name. Doesn't affect class members

@GitSparTV GitSparTV added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Jul 2, 2023
@jgreywolf jgreywolf self-assigned this Aug 27, 2023
@jgreywolf jgreywolf added Status: Approved Is ready to be worked on Graph: Class and removed Status: Triage Needs to be verified, categorized, etc labels Aug 27, 2023
@strixthekiet
Copy link

I am having the same error

@jgreywolf jgreywolf added roadmap items to add to roadmap for auto workflow and removed roadmap items to add to roadmap for auto workflow labels Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Graph: Class Status: Approved Is ready to be worked on Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants