/opt/local/bin/dot not found on homebrew-installed graphviz on Apple Silicon
See original GitHub issueObserved vs. expected behavior
Observed
Expected
Suggestion
Maybe introduce an environment variable GRAPHVIZ_DOT and/or let the user select it via UI like the
PlantUML integration does:
Steps to reproduce
= dot test
[plantuml]
----
@startuml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Context.puml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml
Container(t, "Test Container")
Person(p, "Test Person")
@enduml
----
Environment
Plugin Version: 0.36.13
WebStorm Details: 2021.3.1
% sw_vers
ProductName: macOS
ProductVersion: 12.1
BuildVersion: 21C52
% uname -m
arm64
% brew --prefix
/opt/homebrew
% which dot
/opt/homebrew/bin/dot
https://docs.brew.sh/FAQ#why-is-the-default-installation-prefix-opthomebrew-on-apple-silicon

Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Homebrew on Mac with M1 - wafrat
Recently I needed to install graphviz. On their official site, they say one way is to use Homebrew. Workaround: use Rosetta 2.
Read more >Test your GraphViz installation - PlantUML
This page gives information about testing your GraphViz installation for PlantUML. ... folder if needed (that is, if no installed GraphViz is available)....
Read more >Can't render component diagram with PlantUML in IntelliJ
On a mac using Intellij, if Intellij cannot find graphviz, testdot doesn't work and graphviz was installed with brew install graphviz :.
Read more >graphviz - Homebrew Formulae
graphviz. Install command: brew install graphviz. Graph visualization software from AT&T and Bell Labs. https://graphviz.org/. License: EPL-1.0.
Read more >mac intellij idea 安装plantUML - CSDN博客
... mac 安装plantUML首次提示cannot find graphviz问题描述提示如下原因分析:问题的分析:未安装graphviz解决方案:终端运行brew install graphviz ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I copy /opt/homebrew/bin/dot to /opt/local/bin/dot, then anything is well
Not sure if it is related, but to make the Plantuml plugin work in M1 mac, need to specify the dot path explicitly, which is
/opt/homebrew/bin/dot.