gitdiagram icon indicating copy to clipboard operation
gitdiagram copied to clipboard

[BUG] Syntax error in Mermaid (v11.4.1) when using specific repository

Open dev-void opened this issue 7 months ago • 12 comments

I encountered an issue when using this tool with the following repository: https://github.com/ikyriak/IdempotentAPI.

The tool fails and throws the following error:

Syntax error in text mermaid version 11.4.1

It seems there might be an incompatibility or formatting issue that Mermaid v11.4.1 can't handle.

dev-void avatar Apr 26 '25 12:04 dev-void

I also meet the same question, when using the specific repository, do you solve it? and how?

XIAOEEN avatar Apr 26 '25 13:04 XIAOEEN

same for my repo:

Image

birbilis avatar Apr 27 '25 00:04 birbilis

Before showing that it seemed to be producing the diagrams. In case of such error it would be nice to be able to see what it produced to see where that syntax error is.

birbilis avatar Apr 27 '25 00:04 birbilis

I also tried with https://github.com/Zoomicon/LvS and had same issue. However this time I pressed CTRL+A in the output and quickly did a CTRL+C (it copied everything in the page, but luckily got the diagram too

Then I pasted it into a new diagram at mermaidchart.com (can make free account there with limited use, it's by the makers of mermaidjs) and it showed where the error was, it's some doublequotes that shouldn't be there

Image

can fix by hand, but that site also has an AI fixer for the syntax and it fixed what I suspected (removed those doublequotes in 3 lines)

Image

birbilis avatar Apr 27 '25 01:04 birbilis

I also meet the same question, when using the specific repository, do you solve it? and how?

me too...

BioCrossCoder avatar Apr 27 '25 01:04 BioCrossCoder

same here for https://github.com/alfex4936/hangul-mcp

Alfex4936 avatar Apr 27 '25 06:04 Alfex4936

same here for https://github.com/absaoss/spline-spark-agent

FishManHome avatar Apr 30 '25 07:04 FishManHome

Same issue for me: Spydi's Threat Intel Sharing

spydisec avatar May 01 '25 00:05 spydisec

This is #29 No need to open a new issue. Also, if you go to #29, you can just add a 👍 to it. No need to add a new comment.

wodin avatar May 02 '25 15:05 wodin

it does help to list repos for which it doesn't work though to use as testing grounds if it ever gets fixed (via a next version of the LLM used for example)

birbilis avatar May 04 '25 10:05 birbilis

btw, DeepWiki (powered by Devin - which has an API, but can't say it's cheap) seems to do the job (apart from the fact that lots of stuff is missing from the diagrams), not sure though if the output diagrams are mermaid

https://deepwiki.com/Zoomicon/READCOM.Core.Delphi

birbilis avatar May 04 '25 10:05 birbilis