obsidian-graphviz icon indicating copy to clipboard operation
obsidian-graphviz copied to clipboard

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

Open jybantang opened this issue 1 year ago • 4 comments

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.

  • dot version
dot - graphviz version 10.0.1 (20240210.2158)
  • Obsidian version
Version 1.5.8 (Installer 1.5.3)
  • MacOS
Macbook Air 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:28:58 PST 2023;
root:xnu-10002.81.5~7/RELEASE_X86_64 x86_64

jybantang avatar Feb 26 '24 03:02 jybantang

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

jybantang avatar Feb 26 '24 03:02 jybantang