question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Environment variable substitution stopped working in 1.5 and VS Code 1.51

See original GitHub issue

Brief 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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bobbrowcommented, Nov 6, 2020

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…”: image

0reactions
hriekehofcommented, Nov 7, 2020

works perfectly again. thanks for the quick fix 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found