Skip to content
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

Debugger hangs on processing input() #379

Closed
solitarydev opened this issue Aug 20, 2020 · 1 comment
Closed

Debugger hangs on processing input() #379

solitarydev opened this issue Aug 20, 2020 · 1 comment

Comments

@solitarydev
Copy link

Environment data

  • VS Code version: 1.48.0
  • Extension version (available under the Extensions sidebar): 2020.8.101144
  • OS and version: Ubuntu 20.04
  • Python version (& distribution if applicable, e.g. Anaconda): 3.8.4
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
  • Relevant/affected Python packages and their versions: N/A
  • Relevant/affected Python-related VS Code extensions and their versions: N/A
  • Value of the python.languageServer setting: Microsoft

[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue] <-- I tried this

Expected behaviour

When using the debugger with "Python: Current File" configuration, the debugger handles processing input() properly and moves to the next breakpoint

Actual behaviour

When using the debugger with "Python: Current File" configuration, the debugger hangs upon processing input() and does not move to the next breakpoint

Workaround

Roll back to 2020.7.96456 version of python extension

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. Set a break point to the last line and use the debugger with "Python: Current File" configuration for the following code:
#!/usr/bin/env python3

print("Hello!)
first_name = input("What is your first name?: ")
print(first_name)

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

Starting Pylance language server.
Python interpreter path: /usr/bin/python3.8
> pyenv root
> conda --version
> pyenv root

@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python Aug 20, 2020
@karthiknadig
Copy link
Member

Duplicate of #370

@karthiknadig karthiknadig marked this as a duplicate of #370 Aug 20, 2020
@fabioz fabioz closed this as completed Aug 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants