local plantuml-server doesn't apply arrow layout (u d l r)

0 votes
asked Sep 23, 2022 in Question / help by gpassino (160 points)
edited Sep 23, 2022 by gpassino

Hello! I recently installed plantuml-server locally, works like a breeze on every aspect that's I've tried so far, except for the arrow layout e.g.

@startuml
rectangle a
rectangle b
a -r-> b
@enduml

The code above renders correctly (horizontally) in the official plantuml server but vertically in my installation. Where is the layouting coming from? Is this a problem with my installation or some underlying software? How can I debug it? Thanks!

Btw this is the output of `testdot`:

     PlantUML version 1.2022.7 (Mon Aug 22 17:01:30 UTC 2022)
     Dot version: dot - graphviz version 2.30.1 (20200304.1809)
     Installation seems OK. File generation OK          


I also noticed that the default `Dockerfile.jetty` image works well so I think it might be some underlying software (I needed to change that as in my company we have a local artifactory store as opposed to docker-hub). I just am not sure where to start from.

1 Answer

0 votes
answered Sep 23, 2022 by gpassino (160 points)
It seems it was due to usinge RHEL as a base image. RHEL ships with a very old graphviz, I switched to Ubuntu20.04 which ships graphviz 2.43 and it now works.
...