QAMichaelPeng / obsidian-graphviz

Graphviz plugin for obsidian md.
MIT License
75 stars 12 forks source link

BUG REPORT: Typographical error for `dot` script for MacOS, extra `comma` char instead of space in `dot` script #20

Open jybantang opened 7 months ago

jybantang commented 7 months ago

Apparently, there's an extra comma character , added into the command issued via the dot command within MacOS. The error reads:

"dot -Tpng,/var/folders/to/temporary/text/file" failed, Error: spawn dot ENOENT

Instead of [space], a comma , is inserted between the option -Tpng and the path-to-tmp-file causing the error.

I tried to issue the appropriate command and was able to produce the appropriate file. A copy-paste of the same command above results to an error with -Tpng,/var/folders... as an error flag options. The comma character seems to be considered by the dot as included in the whole options.

For reference, here are my technical details.

jybantang commented 7 months ago

There should be a way to edit the Graphviz plugin to change the comma into a space. I believe it will workout fine.