Repository navigation
Activate conda environments using the path instead of the conda env name #3834
Description
Activity
- ghost addedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on Jan 1, 2019 NowanIlfideme commented
on Jan 1, 2019 AuthorMore actionsNote that all conda environments made with the
-pargument will fail this way.Also, the environment docs show this working with the virtualenv, but it has conda directly next to it (second image). I understand if this is just in the "not yet implemented" territory (I've read that you've been seeking to talk more closely with the Anaconda team), just slightly misleading as it currently is shown.
- ghost removedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on Jan 2, 2019 Hi Anatoly Makarevich (@NowanIlfideme). Thanks for letting us know about this. I wasn't able to duplicate the issue just by opening a (Python) terminal. However, I did see the problem when opening a REPL. We'll investigate further.
- addedbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugand removed
on Jan 9, 2019 This issue is does also trigger a problem when using the "install linter" command
I am seeing the same issue with local conda environments created with prefix (e.g.
-p ./env). Discovery works but then activation fails every time I open a new terminal (cmdin my case).The same problem.
24 remaining items
- changed the title
[-]Activate coda environments using the path instead of the conda env name[/-][+]Activate conda environments using the path instead of the conda env name[/+]on Nov 5, 2019 ✅ Validated using 2019.12.48501-dev
- locked as resolved and limited conversation to collaborators
on Nov 19, 2019
A project-local conda environment will be seen by VS Code, but it will fail to activate automatically. I would guess this is because it looks at the end of the path for the environment name and always activates by name, rather than by path. However, for environments created with the
-p pathnameflag, this will fail (as you can't even set environments name for them with-n).Environment data
Steps to reproduce:
conda create -p ./localenv python=3.7in that directory."python.terminal.activateEnvironment": true(or unset) in settings.Expected behaviour
Automatic environment activation by path, rather than name:
OR
Actual behaviour
When opening a terminal: