Skip to content

Fix extensions issues reported by users - #648

Merged
colby-nyce merged 3 commits into
masterfrom
colby-nyce/tree-node-extensions
Feb 9, 2026
Merged

Fix extensions issues reported by users#648
colby-nyce merged 3 commits into
masterfrom
colby-nyce/tree-node-extensions

Conversation

@colby-nyce

Copy link
Copy Markdown
Contributor

This PR fixes the "unread unbound parameter" exceptions / prints to stdout that were recently reported due to the tree node extensions redesign.

* \throw If 'this' tree node was given more than one extension in the
* input YAML files, this will always throw an exception.
*/
ExtensionsBase * createExtension(bool replace=false);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I replace an extension... if the previous extension had settings, are they lost?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you do this:

auto ext1 = node->createExtension("name");

It gets auto-populated with the YAML parameter values. If you make changes to those parameter values on your own, then do this:

auto ext2 = node->createExtension("name", true); // replace

Then it's auto-populated with the YAML values again, and the changes you made on your own are lost.

If that didn't happen, i.e. if the replaced extension carried over the prior extension's values, then I think the idea of letting extensions be replaced ceases to make sense since they are identical except they are just different instances.

@klingaard klingaard left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once the failures are addressed, looks good to merge

@colby-nyce
colby-nyce marked this pull request as ready for review February 9, 2026 03:27
@colby-nyce
colby-nyce merged commit 9fbadc1 into master Feb 9, 2026
9 checks passed
@colby-nyce
colby-nyce deleted the colby-nyce/tree-node-extensions branch February 9, 2026 03:27
github-actions Bot pushed a commit that referenced this pull request Feb 9, 2026
This PR fixes the "unread unbound parameter" exceptions / prints to
stdout that were recently reported due to the tree node extensions
redesign. 9fbadc1
colby-nyce added a commit that referenced this pull request Feb 9, 2026
This PR fixes the "unread unbound parameter" exceptions / prints to
stdout that were recently reported due to the tree node extensions
redesign.
colby-nyce added a commit that referenced this pull request Feb 9, 2026
Cherry-picked 9fbadc1

This PR fixes the "unread unbound parameter" exceptions / prints to
stdout that were recently reported due to the tree node extensions
redesign.
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.

2 participants