Closed ReenigneArcher closed 1 year ago
Additionally, after resolving the syntax error in my c++ code block (referenced in rstcheck/rstcheck-core#64)... this no longer returns with an error code, which seems odd if this is marked as CRITICAL
.
This is related to or somewhat a duplicate of https://github.com/rstcheck/rstcheck-core/issues/3.
The underlying issue is that sphinx sometimes throws an AttributeError
and that a code directive without a language triggers this issue was a finding of me which I chose to print when this issue occurs. Therefore the wording "This is most propably due to". So actually include
and code-clock
directives are not confused with one another, but suffer from the same issue here.
Unfortunately there is no fix found for this since 8 years. The issue is from before I took over maintainership. Some time ago I invested a lot of hours with no solution at the end.
Closing in favor of the linked issue.
To Dos
[X] I tested with the latest released version.
[X] I have checked the issues and think that this is not a duplicate.
[X] I added a very descriptive title to this issue.
Example Code (rst)
Relevant log output
Description
I am not sure if this is a false positive or what, but I don't have any code-blocks without a specified language.
The first line in the output points to the file pasted above... A pretty simple file. I don't know if the error is actually in that file or within what's included, which is here:
The second error points to this file, which also contains an include directive, and in this case nothing else.
There are no code blocks in the included file.
Perhaps this library doesn't understand the
include
directive?Operating System
Linux
Operating System Details
This is running in a readthedocs build, Ubuntu 22.04.
Python Version
3.11
rstcheck Version
6.1.2
Additional Context
No response