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

Syntax error even with correct syntax #1753

Open
chripu opened this issue Nov 3, 2020 · 7 comments
Open

Syntax error even with correct syntax #1753

chripu opened this issue Nov 3, 2020 · 7 comments
Labels
Graph: Flow Internals: Parser Status: Approved Is ready to be worked on Type: Bug / Error Something isn't working or is incorrect

Comments

@chripu
Copy link

chripu commented Nov 3, 2020

Describe the bug
Rendering a complex graph (flowchart) results in a "syntax error" even if the syntax seems correct.

To Reproduce
Try rendering this file.
test-graph-working.txt

Now add the following link:
item-2491 -.->|RelationA| item-2501;

Try rendering the file (added the link above in line 2):
test-graph-failing.txt

Expected behavior
A rendered graph.
Or a different error message if the graph is too complex to layout!?

@chripu chripu added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Nov 3, 2020
@danisztls
Copy link

I miss the program informing the syntax error and showing the line with it instead of just "syntax error" when opening the output file. Although I might be an ignorant of the program features as I just learned it.

@EricBuist
Copy link

Having the same issue with Mermaid Confluence plugin. All I'm getting is "syntax error" without any information about what goes wrong. All I can do is tentatively remove lines from the file and copy/paste them somewhere, as I cannot find any syntax for comments. Without a declarative tool such as Mermaid, all I have to make diagrams are point and click tools such as draw.io and it becomes very tedious for me to make diagrams.

@zachdaniel
Copy link

Any updates here? I'm experiencing a similar issue. Some kind of information on the syntax error would be immensely helpful.

@gherlein
Copy link

gherlein commented Feb 5, 2023

Me too

@afreisinger
Copy link

Same issue

@nirname nirname added Status: Approved Is ready to be worked on Graph: Flow and removed Status: Triage Needs to be verified, categorized, etc labels Jul 16, 2023
@samelawrence
Copy link

@chripu I am not able to render the chart from test-graph-working.txt in Notion. I get the error:

Unknown error: TypeError: Cannot set properties of undefined (setting 'order')

@jgreywolf
Copy link
Contributor

Mermaid Chart will be reviewing this tomorrow as a possible candidate to include in a list of fixes we will be working on for the open source project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Graph: Flow Internals: Parser Status: Approved Is ready to be worked on Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

10 participants