Skip to content

Debugging program won't start in integrated terminal when using pipenv #4248

Closed
@rawfox

Description

@rawfox

Environment data

Version: 1.30.2 (user setup)
Commit: 61122f88f0bf01e2ac16bdb9e1bc4571755f5bd8
Date: 2019-01-07T22:54:13.295Z
OS: Windows_NT x64 10.0.17763
Python version: 3.7.1
Extension: Name: Python, Id: ms-python.python, Version: 2019.1.0

Expected behaviour

Run python program in integrated terminal

Actual behaviour

Won't start program in integrated terminal. Timeout waiting for debugger connection.
image

Steps to reproduce:

  • create new folder
  • from integrated terminal run command "pipenv install pylint" (inside that folder)
  • create helloworld.py
  • run in mode "Python: Current File (Integrated Terminal)"

Comments and possible cause:

  • Program does work when started in "Python: Current File (External Terminal)" mode
  • First command that gets executed is penv shell, and it used to be ...\activate.ps (What is the reason behind this change?). Seems like command for executing program is broken into two pieces one executing in powershell and the other in pipenv shell. See:

githubissue

  • There is a workaround: stop waiting for debugger (clicking on red square in top right corner), and starting again in same mode:
    image

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