-
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
Extension fails to activate unnamed conda environments #24095
Comments
Hi @F1bos Thanks for filing this issue.
to your settings.json and see if that works? |
Hi. This is what i have in Python extension logs:
This is what i got in terminal:
|
I get the same issue running v2024.14.1 on Windows 11. It appears that the folder name containing the unnamed environment is now being passed to the |
Can you try setting the setting for "native locator" to js instead of native? |
That fixed the issue for me @anthonykim1. It now runs |
Hey @anthonykim1, this issue might need further attention. @F1bos, you can help us out by closing this issue if the problem no longer exists, or adding more information. |
Thanks, it worked. |
Description:
Extension is unable to activate unnamed conda environments created using the
conda create -p
command after the latest update. Previously, these environments were activated correctly. No changes were made to the environments themselves, only VS Code and the Python extension were updated. Named conda environments continue to activate without issue.Steps to reproduce:
Expected behavior:
The Python extension should successfully activate the unnamed conda environment and correctly load its packages, as it did before the update.
Actual behavior:
The Python extension fails to activate the environment and displays an error message, indicating "EnvironmentLocationNotFound". The wrong Python interpreter may be selected, leading to issues with code execution and package resolution.
Logs:
Environment:
Additional information:
conda run
command used by the extension. The logs show it's attempting to activate an environment named "env", but the unnamed environment doesn't have a name and is located at "./env", not "/home/USER/miniconda3/envs/env".I have tried restarting VS Code and reinstalling the Python extension, but the issue persists.
Please investigate this issue and provide a fix to restore the ability to activate unnamed conda environments within the Python extension.
The text was updated successfully, but these errors were encountered: