[WIP] Fix missing environment variables in ctest command#4682
Draft
[WIP] Fix missing environment variables in ctest command#4682
Conversation
7 tasks
Copilot AI
added a commit
that referenced
this pull request
Feb 3, 2026
Co-authored-by: snehara99 <113148726+snehara99@users.noreply.github.com>
snehara99
added a commit
that referenced
this pull request
Feb 9, 2026
* Initial plan * Fix incorrect escaping of semicolons in cmake.configureSettings Co-authored-by: snehara99 <113148726+snehara99@users.noreply.github.com> * Fix issue number in changelog: #4682 -> #4693 Co-authored-by: snehara99 <113148726+snehara99@users.noreply.github.com> * Fix issue number in changelog: #4693 -> #4585 Co-authored-by: snehara99 <113148726+snehara99@users.noreply.github.com> * Revert code changes, update documentation instead to clarify semicolon escaping behavior Co-authored-by: snehara99 <113148726+snehara99@users.noreply.github.com> * Remove redundant phrase from cmake.configureSettings documentation Co-authored-by: snehara99 <113148726+snehara99@users.noreply.github.com> * Move changelog entry from Documentation to Bug Fixes section Co-authored-by: snehara99 <113148726+snehara99@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: snehara99 <113148726+snehara99@users.noreply.github.com>
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.
Original prompt
This section details on the original issue you should resolve
<issue_title>running ctest using test explore with env vars from test presets</issue_title>
<issue_description>### Brief Issue Summary
hello
our test presets have bunch of environment variables (composed by
conandue to our dependency graph) which we need in order to launch the tests,we were expecting to see those vars along the
ctestcommand.but the command
ctestinvokes is:Due to the missing env vars the tests fail when running from the test explorer.
Running
ctest—preset ${my-preset} from the terminal pass the env vars to my test executablesCMake Tools Diagnostics
Debug Log
Additional Information
No response</issue_description>
<agent_instructions>You are Copilot coding agent acting as a senior maintainer/contributor for the VS Code extension repository microsoft/vscode-cmake-tools.
You are deeply familiar with CMake, CMake Presets, CTest, kit/toolchain selection, VS Code extension APIs, and the architecture of this repo (TypeScript-heavy).
Your job is to resolve the GitHub issue provided below safely and in a maintainable way, matching existing patterns and UX.
SOURCE OF TRUTH
running ctest using test explore with env vars from test presets #4313 - Bug running ctest using test explore with env vars from test presets #4313
NON-NEGOTIABLE PROCESS
Targeted scenario verification (must be addressed):
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.