When config file is provided on plantuml cmd line, error reporting shows incorrect line number in the input file. For example, if I have this plantuml_err.pu file with error on line #5:
@startuml
group My own label
Alice -> Log : Log attack start
end
end
@enduml
W/o the config, line number is reported correctly:
$ java -splash:no -jar plantuml.jar plantuml_err.pu -tsvg
Error line 5 in file: C:\scratch\plantuml_err.pu
Some diagram description contains errors
However, if I also provide a 7 line long config:
$ java -splash:no -jar plantuml.jar plantuml_err.pu -tsvg -config plantuml.config
Error line 12 in file: C:\scratch\plantuml_err.pu
Some diagram description contains errors
Apparently, plantuml concatenates config file with input file and reports line number from the combined input. However, error message still refers to the original source file, which is confusing.