Environment variable substitution stopped working in 1.5 and VS Code 1.51
See original GitHub issueBrief Issue Summary
So far i defined a custom build directory via "cmake.buildDirectory": ${env:MY_BUILD_FOLDER}/${buildKit}/${buildType}
Today i updated VS Code and the extension and suddenly i get an error from rollbar:
[rollbar] Ausnahmefehler: Fehler beim Schreiben in Datei "${env:MY_BUILD_DIR}\xxx\RelWithDebInfo\.cmake\api\v1\query\client-vscode\query.json". Error: ENOENT: no such file or directory
It seems that the variable substitution for environment variables is not working anymore. When i use just ${workspaceFolder} for example everything works.
Platform and Versions
- Operating System: Windows
- CMake Version: 3.18
- VSCode Version: 1.51
- CMake Tools Extension Version: 1.5
- Compiler/Toolchain: arm-none-eabi-gcc
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Variables reference - Visual Studio Code
Variables Reference. Visual Studio Code supports variable substitution in Debugging and Task configuration files as well as some select settings.
Read more >Changelog — conan 1.52.0 documentation - Conan Docs - Conan.io
Feature: allow custom path to bash, as configuration and environment variable. Fix: Not issuing an unused variable warning in CMake for the CONAN_EXPORTED ......
Read more >ImageJ Release Notes - NIH
Thanks to Ved Sharma, fixed a bug that caused the ROI Manager's "OR (Combine)" command to not work as expected if the first...
Read more >https://groups.csail.mit.edu/mac/ftpdir/mit-scheme...
2002-02-25 Chris Hanson <cph@zurich.ai.mit.edu> * edwin/fileio.scm[1.157]: Fix another problem with NAME->VARIABLE being passed a string.
Read more >Version 1.51.0 (2021-03-25) - fuchsia Git repositories
Added CARGO_PRIMARY_PACKAGE build-time environment variable. This variable will be ... Fixed cargo package --list not working with unpublished dependencies.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

The variant substitution issue is covered by #1525. I suspect they could be related, but in any case we are looking at both of them.
In the meantime, if you are blocked you can revert back to 1.4.2 by clicking the gear icon next to CMake Tools in the extensions panel and selecting “Install Another Version…”:
works perfectly again. thanks for the quick fix 👍