-
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
Allow alterations to the $PATH in an environmentSetupScript to take effect before searching for the CMake executable #2301
Comments
+1 for this feature -- I use a python virtual environment to install my desired cmake version, and I'd either need to activate that virtual environment (preferred) or modify the path to point cmake-tools at the correct binary. |
+1, There's unfortunately no documentation on |
I would not call this a clean solution, but this work for me on both Windows and Linux : I created a single script that can act both as batch and bash script. This script activate my virtual environment then call CMake.
|
@jfchenier Now
|
+1, It is better to support environmentSetupScript and then call to cmake. |
On some Linux distro, I had to add |
Typo error run_cmake.cmd from ".vscode/setting.json" And run-cmake.cmd from ".vscode/run-cmake.cmd" file. "_" and "-". Anyway, fine now. Many Thanks. |
Sorry @bobbrow, can I ask if there's currently any plan to support this feature? |
From what I'm seeing I think this has to be modified to run environmentSetup script first: vscode-cmake-tools/src/paths.ts Line 228 in aa21395
for reference here's how it's done for the kits: Line 646 in aa21395
I don't know basically anything about typescript so I can't make a PR myself |
@Pesc0 @adrianinsaval and others, thanks for all of your comments. I am placing this on our backlog and we will work to prioritize this issue among our other bugs and requests. Thank you! In the meantime, please up-vote this issue to let us know that it is important to you. |
Thank you! |
@gcampbell-msft This would really simplify setting up the debugger for my VS code environment. I currently have a workaround but it is a hack. |
@benmcmorran Hey seeing you postponed this issue for the next release, can I please ask if it could get tackled for the current release cycle? Over at FreeCAD we are kinda depending on this to finally have proper integration with VSCode, and the work on that has been stalled for months now. Many thanks in advance :) |
Discussed in #2299
Currently the extension searches for the CMake executable before
environmentSetupScript
is evaluated. In the event that the setup script alters the $PATH, those changes won't be in effect when looking for the CMake binary.The text was updated successfully, but these errors were encountered: