esteinberg / plantuml4idea

Intellij IDEA plugin for PlantUML
Apache License 2.0
633 stars 113 forks source link

Cannot find Graphviz error after "brew install graphviz" on M1 mac #330

Closed doljae closed 2 years ago

doljae commented 3 years ago

Description

image

~~So I copied the dot file in /opt/homebrew/bin/ to /usr/local/bin. But I am still getting the same error. Is there any way to use normally?~~

Update

After moving the dot-related files to /usr/local/bin, I restarted intellij and confirmed that it works normally.

I think the problem is because this plugin looks at the dot file inside the directory of /usr/local/bin. If there is a way to modify the path of the dot file through intellj or changing settings, please share.

krasa commented 2 years ago

Default paths are handled by plantuml itself: https://github.com/plantuml/plantuml/blob/b27fa50b5038140eba66e0c82eaed0d0403ed517/src/net/sourceforge/plantuml/cucadiagram/dot/GraphvizLinux.java#L49

You can set a custom path at settings: image

doljae commented 2 years ago

Thanks. Actually, I already found the custom setting in IntelliJ preference... Anyway thank you for kind reply :)