-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
launch.json file: cmake.configureEnvironment cannot be used for "environment" #4228
Comments
Hi @acrfc , Thanks for reporting issue here.
|
Hi @Amy-Li03, I work with a multiplatform CI/CD toolchain heavily driven by a CMake Preset file. To launch the windows version of the executable, I have to add paths to several external dll libs in the environment. I'm new to VSCode, but it seems it was possible with "env" in previous versions. Wouldn't it be possible to fix this regression with introduced by the new "environment" key? As a side note: on other IDEs like QtCreator, using cmake configure/build/test environment to launch an executable is performed seamlessly. |
Hi @gcampbell-msft , do you have any thoughts on @acrfc 's requirements? |
@acrfc It looks like you're correct that the cppdbg debug type, coming from the cpptools extension (@sean-mcmanus @Colengms), only supports the I'm not actually even seeing a command that we support with the Either way, I'm thinking that the main thing that we could do is implement a different version of the command that gives the right format. We'd be happy to take an OSS contribution from you. Thanks! |
Same issue here, |
Brief Issue Summary
With previous vscode versions, in launch.json we could add
"env": "${command:cmake.configureEnvironment}"
Current vscode versions replaced
"env"
by"environment"
, but${command:cmake.configureEnvironment}
still expands to a format compatible with only"env"
and not"environment"
.This means we cannot automatically use cmake presets configure/build environment to run an executable :-(
launh.json file to reproduce:
In this example,
"environment": "${command:cmake.configureEnvironment}"
is not recognized.CMake Tools Diagnostics
Debug Log
Additional Information
No response
The text was updated successfully, but these errors were encountered: