Skip to content

Accommodate '[' and ']' in preset names when finding the code model#75

Merged
MarkSchofield merged 1 commit intodevelopfrom
mschofie/wildcard-preset-name
Oct 7, 2025
Merged

Accommodate '[' and ']' in preset names when finding the code model#75
MarkSchofield merged 1 commit intodevelopfrom
mschofie/wildcard-preset-name

Conversation

@MarkSchofield
Copy link
Owner

If a preset name includes [ or ], then Get-CMakeBuildCodeModel fails, since it uses the path containing the preset name in a call to Get-ChildItem, which allows the path to use PowerShell's wildcard syntax. Since the path itself doesn't need wildcards - Get-ChildItem is used for the 'codemodel-v2-*' filter - then [ and ] can be escaped.

@MarkSchofield MarkSchofield merged commit 38b2642 into develop Oct 7, 2025
1 check passed
@MarkSchofield MarkSchofield deleted the mschofie/wildcard-preset-name branch October 7, 2025 03:58
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.

1 participant