You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The recently introduced new communication modes have broken a workflow for us that used to work with the legacy mode.
We have a direnv-like development environment configuration tool that provides commands you can put on your PATH which will select the appropriate version of the tool to run depending on the current working directory in which they're invoked. For example, when working within a specific repository, I might have repository-local config that makes the cmake command run a specific version of cmake from a specific path that repository is known to work with. Similarly, I might have configuration to make cc resolve to a specific version of gcc or clang.
These repositories used to work with cmake-tools in VS Code because the driver would execute the cmake command inside the repository directory (in a multi-folder workspace, within the folder I'm trying to build):
), so our configuration tool cannot determine the context in which they're operating.
Would it be possible to make the newer drivers run these tools inside the folders they're trying to build please? Alternatively, if you could provide a setting that lets us control the working directory in which commands are run, we could use that too.
CMake Tools Diagnostics
No response
Debug Log
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
I think so, yes. I don't actually know what the difference is between the file api driver and the server driver, but that seems like the right fix as best I can read it.
bobbrow
added
bug
a bug in the product
and removed
more info needed
More info is needed from the community for us to properly triage and investigate.
labels
Aug 26, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Brief Issue Summary
The recently introduced new communication modes have broken a workflow for us that used to work with the legacy mode.
We have a direnv-like development environment configuration tool that provides commands you can put on your PATH which will select the appropriate version of the tool to run depending on the current working directory in which they're invoked. For example, when working within a specific repository, I might have repository-local config that makes the
cmake
command run a specific version of cmake from a specific path that repository is known to work with. Similarly, I might have configuration to makecc
resolve to a specific version of gcc or clang.These repositories used to work with cmake-tools in VS Code because the driver would execute the
cmake
command inside the repository directory (in a multi-folder workspace, within the folder I'm trying to build):vscode-cmake-tools/src/drivers/cmakeLegacyDriver.ts
Line 110 in 5c1fc3f
vscode-cmake-tools/src/drivers/cmakeFileApiDriver.ts
Line 264 in 5c1fc3f
Would it be possible to make the newer drivers run these tools inside the folders they're trying to build please? Alternatively, if you could provide a setting that lets us control the working directory in which commands are run, we could use that too.
CMake Tools Diagnostics
No response
Debug Log
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: