Why did output "No diagram found"?

0 votes
asked Jun 16, 2019 in Question / help by Ichoro

Hi,

Why did output "No diagram found"?

C:\tmp>type small.txt
@startuml
Bob -> Alice : hello
@enduml

C:\tmp>java -jar plantuml.jar small.txt

C:\tmp>java -jar plantuml.jar -metadata small.png
------------------------
small.png

@startuml
Bob -> Alice : hello
@enduml

PlantUML version 1.2019.06beta18(Unknown compile time)
(GPL source distribution)
Java Runtime: Java(TM) SE Runtime Environment
JVM: Java HotSpot(TM) Client VM
Java Version: 1.8.0_191-b12
Operating System: Windows 10
OS Version: 10.0
Default Encoding: MS932
Language: ja
Country: JP

------------------------
No diagram found

C:\tmp>java -jar plantuml.jar -encodeurl small.txt
SyfFKj2rKt3CoKnELR1Io4ZDoSa70000
No diagram found

C:\tmp>java -jar plantuml.jar -decodeurl SyfFKj2rKt3CoKnELR1Io4ZDoSa70000
@startuml
@startuml
Bob -> Alice : hello
@enduml
@enduml
No diagram found

C:\tmp>
 

The class diagram is the same.

Thank you.

1 Answer

0 votes
answered Jun 17, 2019 by plantuml (295,000 points)
Thanks for the feedback.

It should be fixed in last beta http://beta.plantuml.net/plantuml.jar

Tell us if you find other issues!
commented Jun 17, 2019 by Ichi
Confirmed that "No diagram found" is not output as expected.
Thank you for your quick response.
commented Jun 18, 2019 by Ichi
Hi,

"No diagram found" was output even with the "-checkonly" option.
It did not output what was the result of the check.
If there is no problem, do not output anything?
commented Jun 18, 2019 by plantuml (295,000 points)
Right !

This has been solved in yet another beta http://beta.plantuml.net/plantuml.jar

Thanks for your test and tell us if you find other issues!
commented Jun 21, 2019 by ichi
Hi!
The "-pattern" option also outputs "No diagram found".
It is unnecessary :-p)
commented Sep 2, 2020 by sadegh
Hi dears,

have the same issue.

I'm trying to use it as a subprocess in python, but I got below error:

b'Warning: no image in test.puml\n'
b'No diagram found\n'

    command = 'java -jar plantuml.jar -pattern ' + output_puml_file
    print('Wrote PUML output to ' + output_puml_file)
    child = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
...