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
In my understanding one of the latest updates from VSCode made the "Python Interpreter" setting to be remembered and automatically retrieved when the project is opened.
The first issue: this has modified some environment variables in terminals running in the bluemira environment, for example $HOST="x86_64-apple-darwin13...", instead of being equal to the output of hostname. This is apparently a known issue with conda.
As a potential fix, I have tried to set a .vscode/.zshenv to enforce the proper value for HOST. But this is overwritten by the activation of the mamba environment, that happens after sourcing .zshenv.
The second issue: to remedy that situation, I have set a .../activate.d/fix_host.sh file as a mamba post-activation script. However, due to this new VSCode setting for the Pythonf Interpreter, the mamba environment is apparently never properly activated, so the post-activation scripts are never run. In fact:
(bluemira) ... > mamba deactivate
Run 'mamba init' to be able to run mamba activate/deactivate
and start a new shell session. Or use conda to activate/deactivate.
and
(bluemira) ... > conda deactivate
CondaError: Run 'conda init' before 'conda deactivate'
we are not vscode therefore not for our issue tracker. We also have no files associated with setting up vscode in the repo. Thats not for us to maintain.
Describe the bug
In my understanding one of the latest updates from VSCode made the "Python Interpreter" setting to be remembered and automatically retrieved when the project is opened.
The first issue: this has modified some environment variables in terminals running in the
bluemira
environment, for example$HOST="x86_64-apple-darwin13..."
, instead of being equal to the output ofhostname
. This is apparently a known issue with conda.As a potential fix, I have tried to set a
.vscode/.zshenv
to enforce the proper value forHOST
. But this is overwritten by the activation of the mamba environment, that happens after sourcing.zshenv
.The second issue: to remedy that situation, I have set a
.../activate.d/fix_host.sh
file as a mamba post-activation script. However, due to this new VSCode setting for the Pythonf Interpreter, the mamba environment is apparently never properly activated, so the post-activation scripts are never run. In fact:and
so it looks like
conda/mamba init
are skipped.I have opened an issue for VSCode.
Steps to reproduce
See above.
Environment
The text was updated successfully, but these errors were encountered: