Skip to content

fix: initialize buildPresets to empty table before insert#354

Merged
lceWolf merged 1 commit intoCivitasv:masterfrom
deeedob:master
Dec 14, 2025
Merged

fix: initialize buildPresets to empty table before insert#354
lceWolf merged 1 commit intoCivitasv:masterfrom
deeedob:master

Conversation

@deeedob
Copy link
Copy Markdown
Contributor

@deeedob deeedob commented Dec 11, 2025

Prevents 'bad argument #1 to insert (table expected, got nil)' crash when CMakePresets.json has no buildPresets key.

Prevents 'bad argument Civitasv#1 to insert (table expected, got nil)' crash
when CMakePresets.json has no buildPresets key.
@lceWolf
Copy link
Copy Markdown
Collaborator

lceWolf commented Dec 14, 2025

LGTM, thanks for taking care

@lceWolf lceWolf merged commit 02d109f into Civitasv:master Dec 14, 2025
2 checks passed
@lceWolf lceWolf mentioned this pull request Dec 14, 2025
@deeedob
Copy link
Copy Markdown
Contributor Author

deeedob commented Dec 17, 2025

Note that it resolves the error but it's still expected to have a buildPresets section in your CMakePresets, which isn't required. Without it I can't run a target, as it shows 'None' for selecting a build preset.

@lceWolf
Copy link
Copy Markdown
Collaborator

lceWolf commented Dec 18, 2025

Thanks for the hint. Should be resolved now

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