-checkonly -failfast / -failfast2 don't work

0 votes
asked Oct 18, 2017 in Bug by alexmurray (120 points)

Previously I was able to use -checkonly -failfast2 to do a quick validation of plantuml files to flag errors during editing (https://github.com/alexmurray/flycheck-plantuml/issues/1) but this appears to not work anymore...

Ie. for the following document

Bob-<>Alice : hello

running:

java -jar /home/amurray/plantuml.jar -checkonly -failfast2 /tmp/foo.puml

Returns with exit code 0 and no error output.

Has this functionality regressed recently?

1 Answer

0 votes
answered Oct 18, 2017 by plantuml (294,960 points)
selected Oct 19, 2017 by alexmurray
 
Best answer

Strange, it's working for us.

A wild guess : did you put @startuml / @enduml in your foo.puml file ?

@startuml
Bob-<>Alice : hello
@enduml

commented Oct 19, 2017 by alexmurray (120 points)
Ah you are right (sorry for the confusion) - so is @startuml / @enduml required? It seem to be optional since plantuml seems to happily work without it on a simple example - since I am writing a syntax checking tool should the tool be more specific about requiring @startuml etc - or should plantuml itself be more strict on this?
...