-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix No such file or directory on conda activate #15818
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
Comments
Thanks for the bug report! We investigate issues in order based on priority and severity, which includes the impact it has on your ability to use the extension to do productive work, and the number of people affected. If other users come forward and leave a comment demonstrating they are seeing/reproducing the problem then we will raise this issue's priority. Thanks for your understanding and patience! |
Can you try this?
related #10626 |
Hey, @karrtikr. Apparently it's a well known issue! I'm sorry if I missed it from the issues page. starting vscode from conda prompt did solve it! Thanks for your attention! |
Yes, your issue seems very similar to earlier issues like this one #14123 (comment). |
conda activate
instead of source activate
/. activate
to activate a conda environment for newer versions
Hello @karrtikr , is there any progress on the migration? It's been half a year since the solution was proposed but the issue is still not fixed. |
Unfortunately we haven't been able to prioritize it, although there is a long term goal (#11039). The issue is here: vscode-python/src/client/common/terminal/environmentActivationProviders/condaActivationProvider.ts Line 86 in eca4f6e
|
I came here by way of #8770. I've started using |
To workaround this I had to find the location of my I my case |
Currently when you launch an integrated terminal, you have to wait as it does this:
The |
Hello, I have fixed this issue in PR #18989 |
conda activate
instead of source activate
/. activate
to activate a conda environment for newer versions
Fixed with #18989. |
Environment data
python.languageServer
setting: JediExpected behaviour
for the command '. activate' to work in integrated terminal. (but the source command DOES work!- i.e source activate & conda activate)
Actual behaviour
. activate returns an error: No such file or directory, but weirdly enough - the command will work after deactivating the environment:

Steps to reproduce:
Consequence
This is actually affecting a error when using the jupyter extension: whenever I need to activate a virtual environment other than base in a notebook, the following command is used:
returning a command failed message saying: activate: No such file or directory.

I've had this problem in the past, and it disappeared for a while, but now it's back.
Also, a weird observation: if code is called from terminal, this issue does not happen.
The text was updated successfully, but these errors were encountered: