Comments (9)
If I change the path to the dot to /usr/bin/dot
which is the place where the bash shell finds it then I get the same error, File does not exist
. Upon further investigation I see that IntelliJ is using /bin/sh
as shell whereas PyCharm uses /bin/bash
. If I try to find /usr/bin/dot
with sh
the I get no file with that name.
On bash
it's a link to /usr/bin/dot -> ../sbin/libgvc6-config-update*
, so this might be a difference between the two apps.
from plantuml4idea.
I'm having a very similar issue with Android Studio.
Seems to work fine if I have a single class in a diagram:
But if I add a second class it breaks with the same error:
-
I have the correct graphwiz location set in PlantUML settings:
/opt/homebrew/bin/dot
.
-
I also tried setting the global variable
GRAPHVIZ_DOT
in my bash_profile as a last resort.
From the logs:
2023-02-21 13:30:49,134 [4857496] INFO - STDERR - java.io.IOException: Cannot run program "/opt/local/bin/dot": error=2, No such file or directory
2023-02-21 13:30:49,134 [4857496] INFO - STDERR - at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
2023-02-21 13:30:49,134 [4857496] INFO - STDERR - at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
2023-02-21 13:30:49,134 [4857496] INFO - STDERR - at java.base/java.lang.Runtime.exec(Runtime.java:594)
2023-02-21 13:30:49,135 [4857497] INFO - STDERR - at net.sourceforge.plantuml.cucadiagram.dot.ProcessRunner$MainThread.startThreads(ProcessRunner.java:163)
2023-02-21 13:30:49,135 [4857497] INFO - STDERR - at net.sourceforge.plantuml.cucadiagram.dot.ProcessRunner$MainThread.runJob(ProcessRunner.java:123)
2023-02-21 13:30:49,135 [4857497] INFO - STDERR - at net.sourceforge.plantuml.api.TimeoutExecutor$MyThread.run(TimeoutExecutor.java:79)
2023-02-21 13:30:49,135 [4857497] INFO - STDERR - Caused by: java.io.IOException: error=2, No such file or directory
2023-02-21 13:30:49,135 [4857497] INFO - STDERR - at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
2023-02-21 13:30:49,135 [4857497] INFO - STDERR - at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:314)
2023-02-21 13:30:49,135 [4857497] INFO - STDERR - at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244)
2023-02-21 13:30:49,135 [4857497] INFO - STDERR - at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
2023-02-21 13:30:49,135 [4857497] INFO - STDERR - ... 5 more
2023-02-21 13:30:49,135 [4857497] INFO - STDERR - java.io.IOException: Cannot run program "/opt/local/bin/dot": error=2, No such file or directory
2023-02-21 13:30:49,135 [4857497] INFO - STDERR - at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
2023-02-21 13:30:49,135 [4857497] INFO - STDERR - at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
2023-02-21 13:30:49,135 [4857497] INFO - STDERR - at java.base/java.lang.Runtime.exec(Runtime.java:594)
2023-02-21 13:30:49,135 [4857497] INFO - STDERR - at net.sourceforge.plantuml.cucadiagram.dot.ProcessRunner$MainThread.startThreads(ProcessRunner.java:163)
2023-02-21 13:30:49,135 [4857497] INFO - STDERR - at net.sourceforge.plantuml.cucadiagram.dot.ProcessRunner$MainThread.runJob(ProcessRunner.java:123)
2023-02-21 13:30:49,135 [4857497] INFO - STDERR - at net.sourceforge.plantuml.api.TimeoutExecutor$MyThread.run(TimeoutExecutor.java:79)
2023-02-21 13:30:49,135 [4857497] INFO - STDERR - Caused by: java.io.IOException: error=2, No such file or directory
2023-02-21 13:30:49,135 [4857497] INFO - STDERR - at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
2023-02-21 13:30:49,136 [4857498] INFO - STDERR - at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:314)
2023-02-21 13:30:49,136 [4857498] INFO - STDERR - at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244)
2023-02-21 13:30:49,136 [4857498] INFO - STDERR - at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
2023-02-21 13:30:49,136 [4857498] INFO - STDERR - ... 5 more
Android Studio Flamingo | 2022.2.1 Beta 2
Build #AI-222.4459.24.2221.9526055, built on January 25, 2023
Runtime version: 17.0.5+7-b469.71 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
from plantuml4idea.
Isn't there some permission problem?
Does it work directly from the IDE's terminal? https://plantuml.com/command-line
from plantuml4idea.
A single class in a diagram works because it does not use Graphviz.
What does this show?
@startuml
testdot
@enduml
from plantuml4idea.
A single class in a diagram works because it does not use Graphviz.
What does this show?
@startuml testdot @enduml
from plantuml4idea.
activity-diagram is ok, object-diagram don't work
from plantuml4idea.
@REBOOTERS That did not work, because of a configured skin. Try this:
from plantuml4idea.
Is it still broken?
It should be fixed with 1.2023.8
But if the configured path (in the plugin settings dialog) did not work before, then I doubt that it will help.
from plantuml4idea.
I did take a second look and I have a few more details. First the PyCharm (left) and IntelliJ (right) configurations are the same:
One difference between them is that IntelliJ is using sh
as shell and the file owners seem to be completely different than the ones on the system, and as seen by PyCharm.
IntelliJ can't find /usr/bin/dot
and the file owner is nfsnobody.nfsnobody
as you can see bellow:
PyCharm correctly, and using bash
, can access the file:
Also the locale is different on IntelliJ than with PyCharm, even if I did a complete reset of IntelliJ settings.
from plantuml4idea.
Related Issues (20)
- Compatibility with Android Studio HOT 7
- PlantUML Integration does not work in IntelliJ IDEA 2023.1.2 (Ultimate Edition) Build #IU-231.9011.34
- plugin for IntelliJ idea #IC-232.6734.9 not working HOT 3
- Implement SVG viewer based on CEF instead of Apache Batik HOT 2
- org.apache.batik.transcoder.TranscoderException: null HOT 1
- Incorrect message "Syntax Error?" for build-in functions
- Zooming the diagram throw an exception in Rider 2023.2 (index out of bounds) HOT 7
- skinparam ConditionEndStyle hline work unexpectedly HOT 1
- PyCharm Exception while Editing Activity Diagram .puml file HOT 2
- JetBrains plugin generates exception when embedding diagram in md-doc HOT 2
- Preview window does not display AWS icons on version 6.3.1-IJ2023.2 HOT 3
- Export to PDF
- @startgantt freezes Rider IDE 2023.1 on Windows 10 HOT 2
- DITAA diagram results into a transcoder exception HOT 11
- Navigation across .puml files
- remove * + restore not working properly HOT 2
- Apply Config to Nested Diagrams
- Default the PlantUML Server URL to use HTTPS
- thrown exception after applying the 'reverse arrow' in the editor
- Transparent background HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plantuml4idea.