-
Notifications
You must be signed in to change notification settings - Fork 197
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
MyST crashes without error message (breathe extension) #322
Comments
it actually helped to just put a try ... except around the if-clause in docutils_renderer.py, line 970. |
heya, hmm yes it seems that one of your sphinx extensions is using I can certainly add a try/except, |
At a guess this something to do with the way breathe handles directive registration: https://github.com/michaeljones/breathe/blob/4ce8c7a0d79f79f0ae3e7c7fbaa9c4fbb5c84888/breathe/directives.py#L564-L573 |
I'll set up a mini sphinx+breathe+MyST example later, I guess that's what happens here. See also my related issue. I put a try... execpt around the line 970 locally, and since then I've been seing the doxygenstruct related error messages. |
@arwedus, from the Breathe side it would be great with a small example to reproduce. The directive registration indeed seems iffy, so feel free to open an issue over at Breathe (or point me to an existing one if I missed it). |
This should be fixed in the next Breathe release. |
Describe the bug
MyST crashes without error message if "directive_class" is not a class.
To Reproduce
Cannot reproduce, because the error message does not mention the problematic file and the document is confidential.
Expected behavior
MyST should catch the issue that something passed to run_directive is not a known directive class.
Environment
Additional context
full trace log:
The text was updated successfully, but these errors were encountered: