joethei / obsidian-plantuml

Generate PlantUML Diagrams inside Obsidian.md
MIT License
368 stars 18 forks source link

/opt/local/bin/dot not found on homebrew-installed graphviz on Apple Silicon #44

Open w1zdun opened 1 year ago

w1zdun commented 1 year ago

Is your feature request related to a problem? Please describe. When deployed on MacOS and with graphviz installed by homebrew, dot executable is in /opt/homebrew/bin/dot and not in /opt/local/bin so when using local jar, dot cannot be found.

Describe the solution you'd like Additional settings field with path to dot executable and then to use '-graphvizdot' plantuml argument to pass custom path.

Describe alternatives you've considered Tried to symlink /opt/homebrew/bin/dot to /opt/local/bin but didn't worked.

Additional context I've created PR with proposed changes: https://github.com/joethei/obsidian-plantuml/pull/45

rosensama commented 1 year ago

leave the java setting as-is, just java in my path, I no longer get this error, but no diagrams render either. But then it's stuck on "Generating PlantUML Diagram".

I've tried a few combinations of java versions and plantuml JAR and it only seems to work with the server for me.