Skip to content

pipenv shell command doesn't work when installing tools #4404

Closed
@thernstig

Description

@thernstig

Environment data

  • VS Code version: 1.31.1
  • Extension version (available under the Extensions sidebar): 2019.1.0
  • OS and version: Ubuntu 16.04
  • Python version (& distribution if applicable, e.g. Anaconda): 2.7.12
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): pipenv
  • Relevant/affected Python packages and their versions: rope

Expected behavior

I do not have rope installed. When I right-click some code and select "Extract method" it asks me to install rope. I select yes, and get the following output:

test@dev:~/code$ pipenv shell
pipenv install rope --dev
Loading .env environment variables...
Launching subshell in virtual environment...
test@dev:~/code$  . /home/test/code/.venv/bin/activate
(code) test@dev:~/code$

It seems to run both pipenv shell and activate. Also, pipenv install rope--dev is executed before pipenv shell has been activated. Related to this, if you close a terminal (trashcan) and open it again and start writing quickly, the text you enter end up on the same line as "pipenv shell". E.g. I often open terminal and quickly write git ts. What happens is that it looks like: git tspipenv shell. I think this might be related in some sense.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions