Fix/mread pow convert#1381
Merged
Merged
Conversation
Collaborator
|
Hi Kyle, do not hesitate to let me know if there is anything you would like me to test or check or update on my end. |
Collaborator
Author
|
Hey thanks @FelicienLL . No update needed; this is 100% on us. Kyle |
kyleam
approved these changes
Apr 27, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@kyleam Found the regression below in mapbayr after 2.0.0 release.
The problem comes with the call to
convert_pow_spec()which had late move to the mainmread()flow, right before writing out the cpp file.incoming_block_names, which could longer than the length ofspecwhen the names were captured$MAINin the mapbayr example, that could beNULL(no code); whileconvert_pow()can handleNULL, assigningx[[i]] <- NULLblows that position away causing problems when processing subsequent blocks.convert_pow_spec()only checks when length > 0convert_*_spec()functions (however, these aren't called in the same context and I don't expect this same issue)convert_pow_spec()doesn't check blocks beyond the length ofblock_nameswith the idea that these blocks were added bymread()as shim and don't need to be converted.