You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
== Testing an include within a table
include::does_not_exist.adoc[]
|===
| *A* | *B*
| some text a| include::does_not_exist.adoc[]
|===
Expectation
Expected output (simplified HTML):
Testing an include within a table
Unresolved directive in table_include.adoc - include::does_not_exist.adoc[]
A
B
some text
Unresolved directive in table_include.adoc - include::does_not_exist.adoc[]
Expected errors:
asciidoctor: ERROR: table_include.adoc: line 3: include file not found: /path/to/does_not_exist.adoc
asciidoctor: ERROR: table_include.adoc: line 8: include file not found: /path/to/does_not_exist.adoc
Reality
Actual output (simplified HTML):
Testing an include within a table
Unresolved directive in table_include.adoc - include::does_not_exist.adoc[]
A
B
some text
Unresolved directive in <stdin> - include::does_not_exist.adoc[]
Actual errors:
asciidoctor: ERROR: table_include.adoc: line 3: include file not found: /path/to/does_not_exist.adoc
asciidoctor: ERROR: <stdin>: line 1: include file not found: /path/to/does_not_exist.adoc
Details
This poor error message makes it more difficult to identify the location of the error. Fixing this would enable users to more quickly identify and fix problems in their asciidoc files.
Tested using asciidoctor v2.0.16, but I am confident that the issue persists in v2.0.22 because I've root caused the problem to this line of code. The PreprocessorReader constructor accepts an optional 3rd parameter, cursor, that provides the details of what file is being parsed and the location within that file, and that is not being provided here.
Shortly, I'll submit a simple pull request to fix this issue.
The text was updated successfully, but these errors were encountered:
mblythe86
added a commit
to mblythe86/asciidoctor
that referenced
this issue
Mar 26, 2024
Example asciidoc file:
Expectation
Expected output (simplified HTML):
Expected errors:
Reality
Actual output (simplified HTML):
Actual errors:
Details
This poor error message makes it more difficult to identify the location of the error. Fixing this would enable users to more quickly identify and fix problems in their asciidoc files.
Tested using asciidoctor v2.0.16, but I am confident that the issue persists in v2.0.22 because I've root caused the problem to this line of code. The
PreprocessorReader
constructor accepts an optional 3rd parameter,cursor
, that provides the details of what file is being parsed and the location within that file, and that is not being provided here.Shortly, I'll submit a simple pull request to fix this issue.
The text was updated successfully, but these errors were encountered: