Giter Site home page Giter Site logo

Comments (9)

GabrielDumbrava avatar GabrielDumbrava commented on August 14, 2024 1

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.

ConorGarry avatar ConorGarry commented on August 14, 2024

I'm having a very similar issue with Android Studio.

Seems to work fine if I have a single class in a diagram:
Screenshot 2023-02-21 at 14 56 18

But if I add a second class it breaks with the same error:

Screenshot 2023-02-21 at 14 56 12

  • I have the correct graphwiz location set in PlantUML settings: /opt/homebrew/bin/dot.
    Screenshot 2023-02-21 at 15 01 37

  • 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.

krasa avatar krasa commented on August 14, 2024

Isn't there some permission problem?
Does it work directly from the IDE's terminal? https://plantuml.com/command-line

from plantuml4idea.

krasa avatar krasa commented on August 14, 2024

A single class in a diagram works because it does not use Graphviz.

What does this show?

@startuml
testdot
@enduml

from plantuml4idea.

REBOOTERS avatar REBOOTERS commented on August 14, 2024

A single class in a diagram works because it does not use Graphviz.

What does this show?

@startuml
testdot
@enduml
image

from plantuml4idea.

REBOOTERS avatar REBOOTERS commented on August 14, 2024

activity-diagram is ok, object-diagram don't work

from plantuml4idea.

krasa avatar krasa commented on August 14, 2024

@REBOOTERS That did not work, because of a configured skin. Try this:

image

from plantuml4idea.

krasa avatar krasa commented on August 14, 2024

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.

plantuml/plantuml#469

from plantuml4idea.

GabrielDumbrava avatar GabrielDumbrava commented on August 14, 2024

I did take a second look and I have a few more details. First the PyCharm (left) and IntelliJ (right) configurations are the same:

2023-09-06_20-44

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:

2023-09-06_20-37

PyCharm correctly, and using bash, can access the file:

2023-09-06_20-49

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.