Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

Incorrect error line number when config file used

0 votes

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.

 

asked May 16 in bug by glexey (160 points)

1 Answer

+1 vote
 
Best answer
Thanks for the feedback.

We've made a quick correction in last beta https://www.dropbox.com/s/koo42q3d9gxw288/plantuml.jar?dl=0

Tell us if it's ok for you!

Regards,

Arnaud
answered May 16 by plantuml (126,850 points)
selected May 16 by glexey
Awesome - looks working, thanks!
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...