-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
New feature of Python extension will change my conda environment settings. #22752
Comments
Same. I'm using macOS, zsh, and miniforge installed by homebrew. Even when I turned off the option
and my
and in # >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/opt/homebrew/Caskroom/miniforge/base/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/opt/homebrew/Caskroom/miniforge/base/etc/profile.d/conda.sh" ]; then
. "/opt/homebrew/Caskroom/miniforge/base/etc/profile.d/conda.sh"
else
export PATH="/opt/homebrew/Caskroom/miniforge/base/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<< and conda () {
\local cmd="${1-__missing__}"
case "$cmd" in
(activate | deactivate) __conda_activate "$@" ;;
(install | update | upgrade | remove | uninstall) __conda_exe "$@" || \return
__conda_reactivate ;;
(*) __conda_exe "$@" ;;
esac
} Does anyone know what path I should assign to |
Hi @brettcannon @lethefrost
|
Hi there @okkymabruri Thank you! It helps a lot! Seems like the new python extension automatically turned it false? Just for anyone also encountering the same issue: After reactivating this option, the |
Hi all, apologies for the issue. Could anyone send us the debug logs which can help diagnose it:
Output for
|
Hi there, what settings should these logs be running under, and is there any specific action we should do to ensure wanted information is logged? |
No special settings needed other than the ones specified. Just open a Python file to activate the extension and make sure to perform the steps to reproduce the issue. |
Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off. |
Discussed in #22742
Originally posted by Roderick-Stinson January 11, 2024
Because of the feature of python extension, which is Activate Environments in Terminal Using Environment Variables, python extension will delete an environment variable
$CONDA_PREFIX
,the show environment contributions file looks like this:
you can see there isn't a variable named CONDA_PREFIX, instead there are CONDA_PREFIX_2andCONDA_PREFIX_3.
this leads to crash of conda
So could you please help solve this question? It's really annoying. My current solution is add
export CONDA_PREFIX=/home/wangzihan/miniconda3
in .bashrcThe text was updated successfully, but these errors were encountered: