-
Notifications
You must be signed in to change notification settings - Fork 1
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
Understand how to use Visual Studio Code on Windows and Linux for C++ development with conda/mamba/pixi #22
Comments
Ok, I think I found a way, still not super ergonomic but it is working:
|
This comment prefix-dev/pixi#411 (comment) is related. They refer to https://github.com/direnv/direnv-vscode, and indeed a possible workaround/workflow is to define a |
I did some quick tests, on Linux the direnv extension work really well, even if you just installed direnv and you did not hooked it to your shell, CMake extensions then find all the C++ dependencies in the conda/pixi environment. Instead on Windows I was not able to make direnv to work, apparently there are still some issues on the Windows side: |
Cool! We maybe want to update the suggested extensions to include this then. |
At the moment, everyone in the lab using Visual Studio Code with conda/mamba is actually launching
code
in a terminal in which the environment has been activated. This is cumbersome and complex, it would be great to find an alternative.Past research on the topic:
The text was updated successfully, but these errors were encountered: