sphinxcontrib-hdl-diagrams icon indicating copy to clipboard operation
sphinxcontrib-hdl-diagrams copied to clipboard

If I modify the .v file the .svg file is not rebuilt

Open oharboe opened this issue 2 years ago • 1 comments

There appears to be some problem with the dependency tracking.

The workaround is to delete the build folder.

There is some dependency code, but I can't seem to get it to work:

https://github.com/SymbiFlow/sphinxcontrib-hdl-diagrams/blob/5166ade92cb855d87c34fd713b8f489e7dd04561/sphinxcontrib_hdl_diagrams/init.py#L204

oharboe avatar Sep 26 '23 04:09 oharboe

Looks like the documentation for that function can be found at https://www.sphinx-doc.org/en/master/extdev/envapi.html#sphinx.environment.BuildEnvironment.note_dependency

It looks like def get_outdated_files(self, config_changed: bool) -> tuple[set[str], set[str], set[str]]: uses this information. Might be worth putting some debug prints in that to see what is happening?

mithro avatar Sep 26 '23 17:09 mithro