Skip to content
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

Problem with multiple entities / classes #604

Open
mattiamerlini opened this issue Nov 29, 2024 · 1 comment
Open

Problem with multiple entities / classes #604

mattiamerlini opened this issue Nov 29, 2024 · 1 comment

Comments

@mattiamerlini
Copy link

Error occured only on MacOs with latest Os, Vs Code, Java JDK and extension up-to-date.
When previewing / exporting multiple entities or classes, an exception is raised.
Copying the same code in planttext everything works.
Using same extension on Windows with same entities works fine.

The code:

@startuml Yap Euro
title Yap Euro 
entity Prodotti {
    * id
    --
    nome_cn
    nome_it
    prezzo_acq
    prezzo_ven
}
entity Vendite {
    * id
    --
    data_vendita
    metodo_pagamento
    email
    --
    * rif_prodotto
}
Prodotti ||--o{ Vendite
@enduml

The exception:

Error found in diagram Yap Euro
java.io.IOException: Cannot run program "/opt/local/bin/dot": error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
at java.base/java.lang.Runtime.exec(Runtime.java:681)
at net.sourceforge.plantuml.dot.ProcessRunner$MainThread.startThreads(ProcessRunner.java:201)
at net.sourceforge.plantuml.dot.ProcessRunner$MainThread.runJob(ProcessRunner.java:161)
at net.sourceforge.plantuml.api.TimeoutExecutor$MyThread.run(TimeoutExecutor.java:117)
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.(ProcessImpl.java:295)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
... 5 more
java.io.IOException: Cannot run program "/opt/local/bin/dot": error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
at java.base/java.lang.Runtime.exec(Runtime.java:681)
at net.sourceforge.plantuml.dot.ProcessRunner$MainThread.startThreads(ProcessRunner.java:201)
at net.sourceforge.plantuml.dot.ProcessRunner$MainThread.runJob(ProcessRunner.java:161)
at net.sourceforge.plantuml.api.TimeoutExecutor$MyThread.run(TimeoutExecutor.java:117)
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.(ProcessImpl.java:295)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
... 5 more

If I remove the second entity everything works. Same issue with classes diagrams.

@The-Lum
Copy link
Contributor

The-Lum commented Nov 29, 2024

Hi @mattiamerlini

You can test your plantuml configuration with:

@startuml
version
@enduml

Then:

Locally:

Or use a plantuml server:
Either you can configure a plantuml server on the plugin configuration.

If that can help,
Regards,
Th.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants