Skip to content

Conversation

@perrydv
Copy link
Contributor

@perrydv perrydv commented Nov 2, 2025

Fixes #1511

getImmediateParentNodes is called from only one place, makeModelDerivsInfo. It's all described in #1511.

The solution taken here is to extend getImmediateParentNodes by checking if any returned nodes contain the "%.s%" special syntax, and if so use the element IDs and element names to back to the original elements. This is the first option described in #1511.

This should not affect other situations (except for the cost of always calling grepl on the vector of returned nodes), and after all it took years before this bug surfaced, so presumably the cases where it matters are rare.

@paciorek paciorek merged commit 0a7d3d9 into devel Nov 9, 2025
8 checks passed
@paciorek paciorek deleted the fix-getImmediateParentNodes branch November 9, 2025 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug in makeModelDerivsInfo for multiply split LHSinferred nodes

3 participants