Local plantuml.jar does not recognize the "together" keyword

0 votes
asked Dec 2, 2020 in Question / help by anonymous

I have recently realized that using a local plantuml.jar file to generate Class diagram gives different result than using the online plantuml tool.

Local versions:

- plantuml 1.2020.21

- graphviz 2.30.1

Sample code:

together {
  class aaa
  class bbb
  class ccc
}
aaa - bbb
bbb - ccc

The result for the online tool is three horizontally aligned classes. This is the expected behavior.

The result for the local tool is three vertically aligned classes. 

I am not sure if that is a bug but pretty annoying. It seems the local plantuml.jar cannot recognize the "together" keyword and we have to use the online version. If I missed something or there is a configuration option to make it work properly please let me know.

1 Answer

0 votes
answered Dec 2, 2020 by plantuml (295,800 points)
 
Best answer
This is probably caused by your GraphViz version which is too old (2.30.1).

You should probably upgrade to a newer version (that is 2.38 or 2.44).

Tell us if it helps!
commented Dec 6, 2020 by anonymous

It seems upgrading to graphviz-2.40.1 solved the issue. Thanks!

btw: according to the documentation "Graphviz (optional if you only need sequence diagrams and activity (beta) diagrams)"

...