Skip to content
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

Unclear shell and environment for launching cmake command #4173

Closed
quicknir opened this issue Nov 12, 2024 · 0 comments
Closed

Unclear shell and environment for launching cmake command #4173

quicknir opened this issue Nov 12, 2024 · 0 comments
Labels

Comments

@quicknir
Copy link

I'm working remotely on a computer where I cannot change the shell properly with chsh. As a workaround, I'm doing something along the lines of

zsh_path=...
if [ -x "${zsh_path}" ]; then
    export SHELL="${zsh_path}"
    exec "${zsh_path}" -l
fi

All my other environment changes, like modifying the PATH, and so on, are in my zsh startup files. For vscode generally, this seems to work correctly (for example: things are added to PATH to that I can spawn new shells correctly). My .zsh startup files also activate a conda environment. I can see that that environment is not active however when vscode-server executes cmake. If I simply directly activate the conda environment in my .bash_profile though, then it works fine. I was wondering if cmake-tools was maybe doing something that hard codes bash, or something like this, that could explain this?

@github-project-automation github-project-automation bot moved this to Blocked in CMake Tools Nov 12, 2024
@github-project-automation github-project-automation bot moved this from Blocked to Completed in CMake Tools Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Completed
Development

No branches or pull requests

1 participant