Open gregegg opened 3 years ago
Thanks for reporting this bug. I'm not 100% sure, how I can reproduce this error. Would it be possible for you to setup a small example and upload it to a git repo? This would help a lot and I can be sure I got your points.
But overall, I'm not an expert in latex and co. And right now, Sphinx-Needs has no builder specific handling, as all Need-Nodes gets transformed to standard docutils-nodes, so that the later docutils-node-tree does contain standard rst-nodes only. After that the specific builder starts to translate it to the specific output. So up to now, everything which has worked for html has never thrown an exception during latex or other builds.
So this bug looks quite strange and I hope I can reproduce and fix it.
I will work to get you this example. Thank you!
Please see example repo here: https://github.com/gregegg/needextract_347
Thank you!
Hi there -- thank you for publishing this amazing plugin. I am running into trouble with the latex builder. The following information is redacted from the actual source documents -- I can share more information privately if needed.
I am using sphinx=4.0.2 and sphinxcontrib-needs=0.7.1 In my
conf.py
, I haveI define a need in
srd.rst
, and then have.. needextract
in bothsrd.rst
andum.rst
.The html builder successfully builds the
srd.html
andum.html
. The latex builder successfully buildssrd.tex
but then fails onum.tex
, and yields the following error message:I suspect that the handling of external needs is contributing to this somehow. I have tried to step through and debug it myself, but I am lost in the listeners. I hope it is enough to explain the behavior and give a clue on how to fix it?