-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Fix rendering of
needextract
needs (#1249)
This commit fixes two key issues of `needextract` nodes: 1. The call to `BuildEnvironment.resolve_references` was already converting the need node to its final representation (since the calls `process_need_nodes`), and so the later call to `build_need` didn't do anything. This is why the requested layout was not being created. 2. A `needextract` can generate multiple need representation, but all of them were being given the same `id` of the original `NeedExtract` node. All nodes are now wrapped in a containing node, that is set with this `id` Additionally, warnings are now emitted for unfound needs, rather than raise exceptions Also, `build_need` is renamed to `build_need_repr`, to better describe its purpose, and its signature is slightly changed, to allow for the new logic.
- Loading branch information
1 parent
efa0394
commit 58fee42
Showing
4 changed files
with
114 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.