Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]: Uninformative error when running on GH Actions #205

Open
4 tasks done
adam2392 opened this issue Jan 19, 2024 · 1 comment
Open
4 tasks done

[Question]: Uninformative error when running on GH Actions #205

adam2392 opened this issue Jan 19, 2024 · 1 comment

Comments

@adam2392
Copy link

To Dos

  • I already searched with my favorite search engine "How to do X with rstcheck".

  • I already read and followed the README and didn't find an answer.

  • I have checked the issues and think that this is not a duplicate.

  • I added a very descriptive title to this issue.

Description

In my GH actions workflow, I use rstcheck as part of pre-commit.

I get the following uninformative error:

doc/use.rst:10: (SEVERE/4) Problems with "include" directive path:
Error! Issues detected.

I have no ability to debug this because there is no verbosity option. I was wondering is there any tips here? It is referring to this file:

https://github.com/neurodata/scikit-tree/blob/main/doc/use.rst

Here is my pre-commit file: https://github.com/neurodata/scikit-tree/blob/main/.pre-commit-config.yaml

Operating System

Linux

Operating System Details

Ubuntu

Python Version

3.11

rstcheck Version

6.2

@Cielquan
Copy link
Collaborator

Cielquan commented Mar 3, 2024

Rstcheck internally runs docutils and just parses docutil's returned errors. I guess that your error (from docutils) is split onto multiple lines, but rstcheck only takes the first line, I think. This could be the root cause.

I took a look at your file. The error points on the include directive, so only one line in the file can cause the issue. Then I looked at the file tree on the left and the issue seems pretty clear. The file auto_examples/index.rst does not exist, so rstcheck/docutils cannot find it and hence the error on SEVERE level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants