rstcheck / rstcheck-core

Core library behind rstcheck.
http://rstcheck-core.rtfd.io/
MIT License
4 stars 8 forks source link

Cryptic WinError 2 when code-block used #65

Open aggies99 opened 2 years ago

aggies99 commented 2 years ago

As we run "rstcheck . -r --debug" to check all rst files on a Jenkins build node running Windows Server 2016 Server (64-bit), we are observing error "[WinError 2] The system cannot find the file specified". Through brute force, we narrowed it down to a rst file that has multiple code-block directives. Each has the language of "c". When we remove these directives OR build on a Windows 10 build node, the build succeeds. A simple rst file exhibiting the same issue:

User Manual
###########

.. code-block:: c
   //uncomment macro to enable
   #define ENABLE_FEATURE_1

We are running this in a virtual environment with the following dependencies:

alabaster==0.7.12
attrs==21.4.0
Babel==2.9.1
breathe==4.33.1
certifi==2021.10.8
charset-normalizer==2.0.12
colorama==0.4.4
docutils==0.17.1
idna==3.3
imagesize==1.3.0
Jinja2==3.0.3
markdown-it-py==2.0.1
MarkupSafe==2.1.0
mdit-py-plugins==0.3.0
mdurl==0.1.0
myst-parser==0.17.0
packaging==21.3
pyenchant==3.2.2
Pygments==2.11.2
pyparsing==3.0.7
pytz==2021.3
PyYAML==6.0
requests==2.27.1
rstcheck==3.3.1
snowballstemmer==2.2.0
Sphinx==4.3.1
sphinx-notfound-page==0.8
sphinx-rtd-theme==1.0.0
sphinx-tabs==3.3.0
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==2.0.0
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5
sphinxcontrib-spelling==7.3.2
sphinxcontrib-svg2pdfconverter==1.2.0
typing_extensions==4.1.1
urllib3==1.26.8
Cielquan commented 2 years ago

I unfortunately have no windows system available to test this. Could you retry with the new release. Maybe something fixed this, even if no actual code changed.