-
Notifications
You must be signed in to change notification settings - Fork 46
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
BuildEnvironment.warn_node
is deprecated
#101
Comments
Could you provide some minimal example that has this error? |
There it is: https://github.com/denisrosset/sphinxcontrib-matlabdomain-report Note that I'm doing weird things with references (autogenerating references for inherited members), so that's probably what triggers the original warning. I'm fine with that (and found that not using the dot prefix solves the problem). The triggered warning is quite fragile, and some attempts to minimize the report further were unsuccessful, thus I'm leaving the code as it is. The bug report concerns the way the warning is triggered by the Matlab domain, by calling |
Thanks for the link. I have been busy at home and at work, and had no time to look into this yet. But I'll try to squeeze it in. |
No problem, it's sitting there and not going away |
Finally, had some time to look at this. I can confirm, that the it indeed triggers this warning. I found the commit where Edit: Found a fix. @denisrosset would it be okay to include part of the repo you created as a test? |
Absolutely! please take anything you want. If you want me to run some tests too; happy to do so. |
I just looked at it again - and it seems I can replace |
- Added test code from https://github.com/denisrosset/sphinxcontrib-matlabdomain-report - Changed deprecated warning to logger warning.
* Updated to version 0.12.0. * Only Sphinx >= 4.0.0 is now supported. * Only Python >= 3.6 is supported. * Fixed numerous warnings due to deprecated Sphinx API. * Fixed issue #101 * CI now tests on Python 3.6, 3.7, 3.8 and 3.9.
Thus, instead of emitting a warning, Sphinx crashes hard when there is a problem with reference resolution. Full output below.
The text was updated successfully, but these errors were encountered: