question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

needextend does not work depending on file order

See original GitHub issue

If the need and needextension are in the same file, the order between them does not seem to matter and both of the following works.

.. need:: MY_NEED_ID

.. needextend:: MY_NEED_ID
   :status: my-status

or

.. needextend:: MY_NEED_ID
   :status: my-status

.. need:: MY_NEED_ID

If they are split into different files (that is, need in one and needextend in the other), the file order (based on filename) seems to matter. The needextend does not do any extension, if filenames are changed so that they are alphabetically sorted differently.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
danwoscommented, Jun 29, 2021

Ohh sh**, you are right. I have extended my test cases and can confirm this.

The problem is the sphinx event system, which triggers the events per page. So a need on page_1 gets created in docutils node-tree before needextend of page_2 gets executed.

So a solution may be to remove needextend from any events and let the need-creation code take a look into the already fully collected needextend information and execute the modification then per need. This sounds doable.

Thanks for reporting and testing it so deeply. 👍 I’m on it.

0reactions
twodropscommented, Jun 30, 2021

@danwos Works now as expected. Thanks for the quick fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration - Sphinx-Needs 1.1.0 documentation
When no need ID is given by the user, and needs_id_from_title is set to True, then a need ID will be calculated based...
Read more >
I Need to Extend My Personal Protection Order
An ex parte motion means there will not be a court hearing. The judge decides whether to grant or deny your motion based...
Read more >
Magento order products by SKU - sorting - Stack Overflow
Because sku is table column, you don't need extend setCollection() method. Share.
Read more >
Error : no client CA cert available for apiextension-server
Hi, I installed Linkerd2 (stable-2.6.0) in my K8S v1.16.2 Cluster and i got the following error on “linkerd-tap”, “tap” container : "no client...
Read more >
1883 – [PropertiesView] property view sorting (1G956Q4) - Bugs
Why don't we just display them in the order they are given by the ... could provide a patch to fix this problem,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found