Closed chrizzFTD closed 1 month ago
Thanks a lot for letting us know about this and opening a PR for it. Would you mind adding a test case for this?
It seems we are not testing for Sphinx 7.4, and that's probably we haven't found this issue. We should update the list from https://github.com/readthedocs/sphinx-hoverxref/blob/80252c3900c657b852c833a4f24b190339473285/tox.ini#L7
Thanks @humitos ! Will have a look at the test side this week
Hi @humitos, I've addressed the test and tox points; please let me know your thoughts when you or the team have a chance 😄
Hi @humitos, while working on improving the test I realized that missing_reference
from sphinx.ext.intersphinx
was already being imported in the extension module:
which led me to update the implementation of setup_intersphinx to avoid version checking while guaranteeing the intersphinx listener handler we care about is the one being disconnected:
I still have the version that does sphinx version check + module name in previous commits, so please let me know your thoughts on whether this update seems reasonable! 😃
Thanks @humitos !
I can confirm this branch works on my intersphinx project (build here), which installs this branch from git:
Collecting sphinx-hoverxref@ git+https://github.com/chrizzFTD/sphinx-hoverxref.git@update_setup_intersphinx_module_check (from grill==0.17.0)
And can be seen on the two links from grill.cook.UsdAsset's See also
section:
Hi hoverxref team,
My tooltips on intersphinx projects stopped working recently. After a while I was able to track down that the break started happening on
sphinx-7.4.0
.It seems to be due to
sphinx.ext.intersphinx
becoming a package since that version (through https://github.com/sphinx-doc/sphinx/pull/12178, undocumented in the changelog), so I've updatedsetup_intersphinx
to check for a prefix in the module name, which should preserve backwards compatibility.Please let me know your thoughts!
To see in action, the
See also
links from grill.cook.UsdAsset:📚 Documentation preview 📚: https://sphinx-hoverxref--302.org.readthedocs.build/en/302/