Improved errors reporting?
Posted by
gamussa on
URL: https://discuss.asciidoctor.org/Improved-errors-reporting-tp356.html
Hi,
We cut our
book into separate chapters/asciidoc files.
With asciidoctor it's not obvious what file has issues.
Consider following example:
asciidoctor: WARNING: list item index: expected 1, got 4
asciidoctor: WARNING: list item index: expected 2, got 5
asciidoctor: WARNING: line 11300: callout list item index: expected 4 got 1
asciidoctor: WARNING: line 11300: no callouts refer to list item 4
asciidoctor: WARNING: line 11301: callout list item index: expected 5 got 2
asciidoctor: WARNING: list item index: expected 1, got 6
asciidoctor: WARNING: line 11319: no callouts refer to list item 5
asciidoctor: WARNING: line 13068: callout list item index: expected 4 got 3
asciidoctor: WARNING: line 13070: callout list item index: expected 5 got 4
asciidoctor: WARNING: line 13072: callout list item index: expected 6 got 5
asciidoctor: WARNING: line 13074: callout list item index: expected 7 got 6
Time to read and parse source: 0.48466
Time to render document: 0.63502
Total time to read, parse and render: 1.11979And this is how original asciidoc reports about errors:
source-highlight: missing feature: language inference requires input file
source-highlight: could not find a language definition for javascrpt
asciidoc: WARNING: ch1_html.asciidoc: line 858: filter non-zero exit code: source-highlight -f xhtml -s javascrpt: returned 1
asciidoc: WARNING: ch1_html.asciidoc: line 858: no output from filter: source-highlight -f xhtml -s javascrpt
source-highlight: missing feature: language inference requires input file
source-highlight: could not find a language definition for javascrpt
asciidoc: WARNING: ch1_html.asciidoc: line 865: filter non-zero exit code: source-highlight -f xhtml -s javascrpt: returned 1
asciidoc: WARNING: ch1_html.asciidoc: line 865: no output from filter: source-highlight -f xhtml -s javascrpt
asciidoc: WARNING: ch12_jquerymobile.asciidoc: line 448: no callouts refer to list item 1
asciidoc: WARNING: ch12_jquerymobile.asciidoc: line 711: list item index: expected 4 got 3
asciidoc: WARNING: ch12_jquerymobile.asciidoc: line 713: list item index: expected 5 got 4
asciidoc: WARNING: ch12_jquerymobile.asciidoc: line 715: list item index: expected 6 got 5
asciidoc: WARNING: ch12_jquerymobile.asciidoc: line 717: list item index: expected 7 got 6
asciidoc: WARNING: ch12_jquerymobile.asciidoc: line 717: no callouts refer to list item 7Am I missing something? Any suggestions?
Thanks,
Vik