You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pipenv shell command doesn't work when installing tools #4404
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:
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.
Don Jayamanne (@DonJayamanne) Thanks for pointing it out. Was hard to find an issue due to the minimalistic information in the original :)
I realize I kind of baked two questions into this issue, but what about this part:
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.
I am assuming that even though it is reverted to activate, this might still be a problem?
Eventually it pops up a "Timeout waiting for debugger connection" dialog and the debugger stops.
Oddly enough, if I point the Python interpreter at a different project, then then it sources the activate file first (which puts it in a pipenv shell) and runs the main command after that, which allows the debugger to connect. That only works if the projects have the same dependencies though.
Activity
DonJayamanne commentedon Feb 14, 2019
Duplicate of #4394
pipenv shell#4394thernstig commentedon Feb 15, 2019
Don Jayamanne (@DonJayamanne) Thanks for pointing it out. Was hard to find an issue due to the minimalistic information in the original :)
I realize I kind of baked two questions into this issue, but what about this part:
I am assuming that even though it is reverted to activate, this might still be a problem?
ericarnold-granular commentedon Feb 21, 2019
Is this the same thing that causes debugging to be broken when trying to launch the app directly? This is the debug def I have for our Flask app
When I try to run it I get this:
Eventually it pops up a "Timeout waiting for debugger connection" dialog and the debugger stops.
Oddly enough, if I point the Python interpreter at a different project, then then it sources the activate file first (which puts it in a pipenv shell) and runs the main command after that, which allows the debugger to connect. That only works if the projects have the same dependencies though.
[-]Python install extension [/-][+]`pipenv shell` command doesn't work when installing tools[/+]