forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
area-environmentsFeatures relating to handling interpreter environmentsFeatures relating to handling interpreter environmentsbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug
Description
Environment data
- VS Code version: 1.45.1
- Extension version (available under the Extensions sidebar): 2020.5.80290
- OS and version: Windows 10, build 18363
- Python version (& distribution if applicable, e.g. Anaconda): 3.7.7, python.org
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): pipenv
- Value of the
python.languageServersetting: Microsoft
Expected behaviour
When opening a new git bash terminal, the pipenv environment is properly activated.
Actual behaviour
jakub@LAPTOP-6R3A0N4R MINGW64 /d/Fiverr_28 (master)
$ source C:/Users/jakub/.virtualenvs/Fiverr_28-MrJNCoYT/Scripts/activate
(Fiverr_28)which does not activate the environment properly in GitBash
Steps to reproduce:
- Set the default integrated terminal to GitBash
- Create new Pipenv environment
- Set the project interpreter to the adequate venv
- Open a new integrated terminal
What I suggest
Pipenv provides a really useful layer of abstraction and one of it's features is the pipenv shell command, which is not being used in this case. Using this command instead of directly running the activation script would resolve this issue.
The issue #2559 would also be resolved by using pipenv shell instead of directly activating the venv.
bephinix and raratiru
Metadata
Metadata
Assignees
Labels
area-environmentsFeatures relating to handling interpreter environmentsFeatures relating to handling interpreter environmentsbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug
