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
Issue: conda environment not activating correctly
Problem started: 2/7/2025 (After the 2/7 update)
Setting affected: python.terminal.activateEnvironment
Extension version: 2025.0.0
VS Code version: Code 1.97.0 (33fc5a94a3f99ebe7087e8fe79fbe1d37a251016, 2025-02-04T22:41:26.688Z)
OS version: Windows 10 x64 10.0.19045
When launching a new terminal in PowerShell, the extension incorrectly uses the full path to conda.bat (e.g., D:\Users\username\miniconda3\Library\bin\conda.bat activate my_environment) to activate the environment, instead of the expected conda command (e.g., conda activate my_environment).
Note that the conda command works fine. The issue is only that the full path is being used in the python.terminal.activateEnvironment automation.
Update the Python extension to the latest version as of February 7, 2025.
Set the default terminal to PowerShell.
Open a new terminal in Visual Studio Code.
Observe that the full path to conda.bat is being invoked in place of the conda command in the environment activation process, preventing the environment from being activated correctly.
The text was updated successfully, but these errors were encountered:
Yes, it is set. It's been set to this path for over a year and I haven't had any other problems.
What are you trying to solve for-do you think it's local to my system? I did what I could w/ this setting, let me know if there's anything else I can check.
I just tried -
Removed the path and reverted to the default blank python.condaPath setting
Confirmed setting updated in JSON
Restarted VS Code
Launched Terminal
No change. Full path to conda.bat is still being used to activate the environment instead of conda command
ETA - Not sure how the activation is called so I'm not sure what else could be affecting it locally.
Just a heads up, there has just been a behavior change on my end. The conda command is now being sent to the terminal and the environment is happily activating! 😄 I'm assuming the change is due to the extension update 11 hours ago?
1 callout - When I start a new terminal in VS code, /miniconda3/Scripts/activate runs in an external command prompt. Before the 2/7 extension, I didn't have that external window pop up. Is this an expected result?
Type: Bug
Behavior
Issue: conda environment not activating correctly
Problem started: 2/7/2025 (After the 2/7 update)
Setting affected: python.terminal.activateEnvironment
Extension version: 2025.0.0
VS Code version: Code 1.97.0 (33fc5a94a3f99ebe7087e8fe79fbe1d37a251016, 2025-02-04T22:41:26.688Z)
OS version: Windows 10 x64 10.0.19045
When launching a new terminal in PowerShell, the extension incorrectly uses the full path to conda.bat (e.g., D:\Users\username\miniconda3\Library\bin\conda.bat activate my_environment) to activate the environment, instead of the expected conda command (e.g., conda activate my_environment).
Note that the conda command works fine. The issue is only that the full path is being used in the python.terminal.activateEnvironment automation.
Terminal Log:
(base) PS D:\Users\username\dir> D:\Users\username\miniconda3\Library\bin\conda.BAT activate my_environment
(base) PS D:\Users\username\dir>
Steps to reproduce:
The text was updated successfully, but these errors were encountered: