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
TODOs inside a :param: have a uri, but not a refid. #5800
Conversation
This avoids a KeyError when generating a link to a TODO that crashes sphinx, and gives a warning so the offending TODO can be tracked down.
Codecov Report
@@ Coverage Diff @@
## master #5800 +/- ##
==========================================
- Coverage 83.27% 83.27% -0.01%
==========================================
Files 296 296
Lines 39579 39582 +3
Branches 5872 5872
==========================================
+ Hits 32959 32960 +1
- Misses 5260 5262 +2
Partials 1360 1360
Continue to review full report at Codecov.
|
Could you share some example to reproduce the error please? |
Sure, if you clone this: https://github.com/daleevans/sphinx-toc-bug-demo and run
|
Thank you for example. I found the root cause of the error. docutils does not assign |
Yes, this works perfectly. Thanks! |
Fix #5800: todo: crashed if todo is defined in TextElement
Thank you for confirm. I just merged #5848 instead. |
Subject: This avoids a KeyError when generating a link to a TODO that crashes sphinx, and gives a warning so the offending TODO can be tracked down.
Feature or Bugfix
Purpose
Detail