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
Mermaid syntax errors are not displayed #276
Comments
We are aware of the issue and I have created a PR a long time ago in the mermaid project to fix the issue mermaid-js/mermaid#2379 |
It looks like your patch is now released upstream: mermaid-js/mermaid@473aced. Does anything need to be done to log the errors to the console when using |
@multimeric : maybe you can help me a bit. I do not see that this change has been actually released. There is no mention in the mermaid release notes and if I call the new function, I get an error: https://github.com/mermaid-js/mermaid-cli/runs/6467149774?check_suite_focus=true |
Oh right, so your new function isn't being exported unfortunately: You may need to add a PR to add it to the exported object. |
Thank you! 😄 |
@multimeric Done! mermaid-js/mermaid#3052 Thank you for your help! You are welcome to create PRs for the functionality which is missing in mermaid-cli - I will review them and accept if no issues 😄 |
Describe the bug
When the input file contains a syntax error, the output is "Generating single mermaid chart" and the generated image contains "Syntax error in graph".
To Reproduce
Steps to reproduce the behavior:
I am using the docker container
$HOME/Mermaid
folderdocker run -u 1000 -it --rm -v $HOME/Mermaid:/data minlag/mermaid-cli -i "/data/seq-diagram.mmd" -o "/data/seq-diagram.png"
Inside the container I do not get any other message
$HOME/Mermaid
folderdocker run -u 1000 -it --rm --entrypoint /bin/sh -v $HOME/Progs/Mermaid:/data minlag/mermaid-cli
./node_modules/.bin/mmdc -p "/puppeteer-config.json" -i "/data/seq-diagram.mmd" -o "/data/seq-diagram.png"
Expected behavior
I would like to see the syntax error so that I can fix it
Screenshots
Desktop:
Additional context
I am not used to JavaScript but it seems like the following question in SO : https://stackoverflow.com/questions/51907677/log-console-calls-made-in-client-side-code-from-the-puppeteer-node-js-process
It seems that you could catch console events that happen in puppeteer / chromium to log them in Node ... as I understand it
The text was updated successfully, but these errors were encountered: