-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Run python file in pipenv environment fails #4245
Comments
I believe I'm stuck on this. In the terminal I see this:
How do I work around this? Is it possible to just hard code the python environment? I've had things set up with a specific python and it worked in the past few weeks, but this no longer works:
The terminal window displays:
|
Solution:Use new VSC API (proposed API at the time of writing this) to check what information has been written out into terminal before sending other commands. See here microsoft/vscode#67693 (comment) |
Closing in favor of #16988, we also are no longer using |
Run Python file in terminal
pipenv shell
to activate the environment in the terminal<python interpreter> <file name>
to the terminalpipenv shell
has not yet completed, and the commands sent later get swallowed upCauses:
Solutions:
pipenv shell
takes longer than other activation routines, hence we need a much longer delay (i.e. a bigger magic number), a work around.microsoft/vscode#67693
The text was updated successfully, but these errors were encountered: