-
-
Notifications
You must be signed in to change notification settings - Fork 477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find Graphviz #313
Comments
Hi @ronaldd2, Could you please provide an example what (and how) you try to render and result in the error? I tried to test the latest jetty version but can not reproduce any error. docker run -d --pull always -p 8080:8080 --name plantuml plantuml/plantuml-server:jetty
docker logs -f plantuml
|
@HeinrichAD This is weird, when I enter your simple command on the website of our server it renders correctly. However when I'm using Visual studio code with the Plantuml plugin from jebbs I get the error again. |
@ronaldd2 again, I tried the vscode extension Could you please check the following extension settings:
You can also check if the server really is rendering the diagram. To do that, just look into the plantuml log # note that `-f` is important here
docker logs -f <docker-conainer-id-or-name> and see if rendering the following code snippet shows @startuml
!log Hello World
@enduml If |
@HeinrichAD
|
@arnaudroques Since you changed the dot file location code and some other Graphviz stuff not too long ago. I mean the simplest solution is like @ronaldd2 already stated in the original issue text to create a hard link. But maybe we could try to find the root of this problem since this solution is only valid for the PlantUML Server. (To be more specific only for the docker versions of PlantUML Server.) |
Since this post is more than a year after the last comment, It is likely any dot path issues have been fixed. However, my problem presents the same way except there is no entry in the docker log at all. Strange coincidence. I have listed the fix here (Nothing to do with PlantUML server. Peculiarities with VSCode settings and Jebb's PlantUML Extension). Root cause of my problemThe root cause is that the PlantUML Extension (by Jebbs) defaults to local server when The proximal cause of this (in my case atleast) is that the workspace settings had a Once I emptied out the workspace settings to InvestigationI have had the exact same issue when I decided to switch to a locally hosted (on a different server but same LAN) plantuml. What was mystifying was that a VSCode instance on another workspace hit the local server while the other instance on another workspace bombed with the My windows VSCode was managing code on a linux server using Remote-SSH. Since the plantuml container was running on the same server, I set the {
"plantuml.server": ""
} Simply clearing that out to |
Describe the bug
When rendering a C4 model an error is shown Dot executable does not exist. Cannot find Graphviz
The expected location is /usr/bin/dot but the actual location is /usr/local/bin/dot
Expected behavior
Correct rendering without error
Screenshots
Server
Work around
Made a hard link in the local docker image so dot can be found in /user/bin/
The text was updated successfully, but these errors were encountered: