Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't render component diagram with PlantUML in IntelliJ

I am trying to create a component diagram using the PlantUML plugin for IntelliJ. I have installed the plugin and worked with it before. However, when I try to render a component diagram, I get an error:

Cannot find Graphviz

enter image description here

I've also checked with other diagrams and a sequence diagram is still working just fine.

enter image description here

What is the problem here?

like image 705
Yedidya kfir Avatar asked Jan 29 '19 04:01

Yedidya kfir


People also ask

How do I integrate PlantUML in IntelliJ?

Installing the PlantUML integration plugin for IntelliJ IDEAGo to Settings > Plugins > Marketplace and install the plugin PlantUML integration . Then go to Settings > Other Settings > PlantUML or search for PlantUML. Configure the path to the dot executable.

Does PlantUML use graphviz?

PlantUML uses Graphviz/DOT to compute node positionning for every UML diagrams (except Sequence Diagrams and Activity Beta Diagrams). The fact that DOT computes automatically the position of node is a key feature, and algorithms implemented in DOT usually give very good result.

What is PlantUML used for?

PlantUML is a component that allows you to quickly write: Sequence diagram. Usecase diagram. Class diagram.


1 Answers

Sequence diagrams and activity diagrams work out of the box.

For other types of diagrams, you need to have Graphviz installed (version > 2.26.3).

  1. If you don't have Graphviz installed - just install it.
  2. If you have it installed but its version is improper - reinstall it.
  3. If you have it installed in proper version but location is other than default - point to that location. You can manage that either by specifying env variable GRAPHVIZ_DOT containing a path to Graphviz executable or pointing it out directly from IntelliJ's PlantUML plugin settings.

Here, you can read more on how to install Graphviz to get along with PlantUML.

Btw. I solved the same problem by simply typing sudo apt-get install graphviz in my console - maybe would work for you as well.

like image 86
Jakub Ch. Avatar answered Sep 19 '22 14:09

Jakub Ch.