Option 1.
On a mac using Intellij, if Intellij cannot find graphviz, testdot doesn't work and graphviz was installed with brew install graphviz
:
- In Intellij, click the wrench icon on the far right of the menu panel that contains the plantuml view and editor arrangement.
- Click 'Open settings'
- For 'Graphviz dot executable' add
/opt/homebrew/bin/dot
.
- Click OK and restart Intellij.
This fixes the issue for me.
You can check first that you really are missing the /opt/local/bin/dot
(or whatever path you're shown is broken) and the /opt/homebrew/bin/dot
exists, but likely the reason is that brew put dot under its own path.
Option 2.
Found myself on this same thread while using Windows 11 having a similar issue. The puml and plantuml codeblocks weren't displaying the diagram in a markdown file, only codeblock-ed text. What solved it for me:
- Go to
Settings
in Intellij,
- on the left menu, select
Languages & Frameworks
,
- and under it, select
Markdown
Review the Markdown Extensions
section. Install and enable PlantUML there. Same solution worked for Mermaid.