Re: Improved errors reporting?

Posted by mojavelinux on
URL: https://discuss.asciidoctor.org/Improved-errors-reporting-tp356p497.html

I think you'll appreciate this output, which I got from running Asciidoctor master in the Enterprise Web Book build.sh:

asciidoctor: WARNING: ch1_advancedjs.asciidoc: line 1737: no callouts refer to list item 1
asciidoctor: WARNING: ch2_html.asciidoc: line 1121: no callouts refer to list item 1
asciidoctor: WARNING: ch3_mockup.asciidoc: line 298: no callouts refer to list item 1
asciidoctor: WARNING: ch3_mockup.asciidoc: line 301: no callouts refer to list item 2
asciidoctor: WARNING: ch7_large_js_apps.asciidoc: line 71: no callouts refer to list item 1
asciidoctor: WARNING: ch7_large_js_apps.asciidoc: line 73: no callouts refer to list item 2
asciidoctor: WARNING: ch7_large_js_apps.asciidoc: line 75: no callouts refer to list item 3
asciidoctor: WARNING: ch7_large_js_apps.asciidoc: line 585: no callouts refer to list item 1
asciidoctor: WARNING: ch7_large_js_apps.asciidoc: line 787: no callouts refer to list item 1
asciidoctor: WARNING: ch7_large_js_apps.asciidoc: line 789: no callouts refer to list item 2
asciidoctor: WARNING: ch8_testdriven_js.asciidoc: line 236: no callouts refer to list item 1
asciidoctor: WARNING: ch8_testdriven_js.asciidoc: line 238: no callouts refer to list item 2
asciidoctor: WARNING: ch8_testdriven_js.asciidoc: line 240: no callouts refer to list item 3
asciidoctor: WARNING: ch8_testdriven_js.asciidoc: line 242: no callouts refer to list item 4
asciidoctor: WARNING: ch8_testdriven_js.asciidoc: line 244: no callouts refer to list item 5
asciidoctor: WARNING: ch8_testdriven_js.asciidoc: line 337: no callouts refer to list item 1
asciidoctor: WARNING: ch8_testdriven_js.asciidoc: line 339: no callouts refer to list item 2
asciidoctor: WARNING: ch8_testdriven_js.asciidoc: line 341: no callouts refer to list item 3
asciidoctor: WARNING: ch8_testdriven_js.asciidoc: line 343: no callouts refer to list item 4
asciidoctor: WARNING: ch12_jquerymobile.asciidoc: line 433: no callouts refer to list item 1
asciidoctor: WARNING: ch12_jquerymobile.asciidoc: line 435: no callouts refer to list item 2
asciidoctor: WARNING: ch12_jquerymobile.asciidoc: line 437: no callouts refer to list item 3
asciidoctor: WARNING: ch12_jquerymobile.asciidoc: line 439: no callouts refer to list item 4
asciidoctor: WARNING: list item index: expected 4, got 5

Context! Yeah!

We're getting there ;) There are still some messages that are slipping through without line information, but it's just a matter of wiring the line information into those locations in the code.