"No diagram found" when trying to general .png from command line

0 votes
asked Jun 22, 2022 in Question / help by Marius

Using latest release v1.2022.5

java -jar ..\plantuml\plantuml.jar ./*.puml -v
(0.000 - 254 Mo) 249 Mo - SecurityProfile LEGACY
(0.003 - 254 Mo) 249 Mo - PlantUML Version 1.2022.5
(0.003 - 254 Mo) 249 Mo - GraphicsEnvironment.isHeadless() false
(0.003 - 254 Mo) 249 Mo - Forcing resource load on OpenJdk      
(0.072 - 254 Mo) 248 Mo - Found 1 files
(0.072 - 254 Mo) 248 Mo - Working on test copy.puml
(0.093 - 254 Mo) 247 Mo - Using default charset      
(0.098 - 254 Mo) 247 Mo - Reading from test copy.puml
(0.107 - 254 Mo) 247 Mo - Setting current dir: C:\Temp\ERD\diagrams\.
(0.108 - 254 Mo) 247 Mo - Setting current dir: C:\Temp\ERD\diagrams\
(0.108 - 254 Mo) 247 Mo - Reading file: test copy.puml
(0.109 - 254 Mo) 247 Mo - Number of image(s): 0
Warning: no image in test copy.puml
No diagram found

test copy.puml file contains this:

@startuml

Bob -> Alice : hello

@enduml

Thanks!!

commented Jun 25, 2022 by kirchsth (5,780 points)
Hi Marius,
I cannot reproduce the problem.
Why is your text colored?
Are you using a plain text file or something like html,...?

Can you try it with plain text like
@startuml
Bob -> Alice : hello
@enduml

Best regards
Helmut

1 Answer

0 votes
answered Aug 23, 2022 by anonymous
Hi Helmut,

Thanks, the issue was the source file encoding. It was UTF16LE. I converted all files to UTF8 with BOM and it worked fine.

Thanks!
...