You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there are sections with the same title, a Duplicate implicit target name message is generated; however the documentation for explicit targets, while not addressing this specific case, describe adding explicit hyperlink targets by placing them just before the block to be targeted. This seems (to me) to imply that this StackOverflow answershould work to silence this warning, but it does not.
+1 im guessing the workarounds are either to raise level to warn (as suggested in SO discussion - pretty undesirable tbh) or to filter out these messages
Explicit hyperlink targets override any implicit targets having the same reference name. The implicit hyperlink targets are removed, and level-1 (info) system messages are inserted.
Explicit hyperlink targets override any implicit targets having the same reference name. The implicit hyperlink targets are removed, and level-1 (info) system messages are inserted.
This indeed seems be the case.
The SO answer uses the explicit target _description2 to overwrite the duplicate implicit target description for the reference name Description. So what happens is exactly what is described in the quote.
So the only possible solutions to this issue are:
raising the report level to warning
ignoring the info message via the --ignore-messages CLI option or ignore_messages file config option
Activity
phlax commentedon Apr 19, 2021
+1 im guessing the workarounds are either to raise level to warn (as suggested in SO discussion - pretty undesirable tbh) or to filter out these messages
it would be great if this was fixed
Cielquan commentedon Apr 16, 2022
I can reproduce this issue.
Are you willing to tackle it?
Cielquan commentedon Apr 19, 2022
I looked into the matter and this is an issue with docutils and not rstcheck. rstcheck simply passes the info message on.
If you open an issue over at https://sourceforge.net/p/docutils/_list/tickets please link it here, so we can follow the progress.
fix: disable rst strict check due to implicit target name bug
pshiu commentedon Jun 16, 2022
Per https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#implicit-hyperlink-targets, the generation of this INFO-level message may be expected behavior:
Cielquan commentedon Jun 28, 2022
This indeed seems be the case.
The SO answer uses the explicit target
_description2to overwrite the duplicate implicit targetdescriptionfor the reference nameDescription. So what happens is exactly what is described in the quote.So the only possible solutions to this issue are:
--ignore-messagesCLI option orignore_messagesfile config optionchore(rstcheck): ignore unreferenced hyperlinks
chore(rstcheck): ignore unreferenced hyperlinks