-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add support for Enthought Deployment Manager (EDM) #6874
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 filing this issue. As we do not officially support EDM, I've changed the title and labelled this as an enhancement. |
While out-of-the-box support for "Enthought Deployment Manager (EDM)" would be great, it appears that VS Code already has the built-in flexibility to support other Python virtual environments with the python.venvPath and/or the python.venvFolders settings. At this point I am trying to figure out what those settings need to be for VS Code to recognize other Python virtual environments or if there is something required in other environments that VS Code looks for before recognizing them. So, this may be a simple documentation issue (either not there or I cannot find it). Thanks. |
Just tested on MacOS -- same issue with recognizing the EDM environments. The fix here is simple:
Note: No python.venvPath or python.venvFolders properties set. Also, if already have a .virtualenvs directory, can link similarly to each individual EDM virtual environment that I wish to recognize in ~/.edm/envs. |
On original Windows, the analogous Windows logical link does not work:
|
See #2575 -- On Windows -- adding a specific EDM environment to the PATH allows VS Code to recognize that environment and use it. For example, appending |
Hey @calabrian1598, we're not going to add support for EDM directly for now, but what is the structure of the py3-test folder? We may be able to find a workaround for that. |
@luabud here is the top-level directory structure:
While a workaround would be appreciated, I was entering the issue since it appears that either python.venvFolders does not work or is not sufficiently/correctly? documented. Thanks. |
@calabrian1598 yeah the problem is that the folder follows a different structure. This is the link to the docs for how the extension handles environments: https://code.visualstudio.com/docs/python/environments#_where-the-extension-looks-for-environments |
Similar to issue #4642. Trying to set settings.json to find some additional virtual environments. Mine are located in ~/.edm/envs (with 4 virtual environments under here, created by Enthought EDM). Have tried:
"python.venvPath": ".edm\envs"
"python.venvPath": "~\.edm\envs"
"python.venvPath": ".edm/envs"
"python.venvPath": "~/.edm/envs"
"python.venvPath": "C:\Users\user\.edm\envs"
VS Code does not find any of the virtual environments located in the ~/.edm/envs area. However, without having to modify python.venvPath it does find all three setup by Enthought Canopy in ~\AppData\Local\Enthought\Canopy\edm\envs. As far as I can tell, the virtual environment setup is the same in both areas.
In Issue #4642 found mention of python.venvFolders, so I tried the same variations as above:
"python.venvFolders" : [".edm\envs"]
"python.venvFolders" : [".edm/envs"]
...
No success.
Environment data
Expected behaviour
Ability to select a Python environment in lower left corner, either immediately (see Issue #1458) or after restarting VS Code.
Actual behaviour
VS Code apparently does not find any of the virtual environments in ~/.edm/envs.
Steps to reproduce:
The text was updated successfully, but these errors were encountered: