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
Extension version (available under the Extensions sidebar): 2020.8.101
OS and version: Pop!OS (GNOME version: 3.36.3, Windowing System: X11)
Python version (& distribution if applicable, e.g. Anaconda): 3.8.3
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): dark +
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]
The above made it worse
Expected behaviour
the function takes the input from the question variable and converts it into an integer.
then returns it
Actual behaviour
Program gets to line with input call and freezes
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
Run the following code
# clear(False) -> Clears the terminal using the clear and cls for everything but windows and windows respectively. # proven to work without issuedefgetIntegerInput(question:str) ->int:
whileTrue:
try:
clear(False)
tmp=int(input(question))
iftmp=="":
return0returntmpexceptValueError:
print("Sorry, but that is not a number. please use the digits (0 - 9)")
continueprint(getIntegerInput("Give me a number: "))
Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
N/A, there is nothing there. it freezes.
however, when I force quit the process it says
timeout after 1000ms
The text was updated successfully, but these errors were encountered:
Environment data
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]The above made it worse
Expected behaviour
the function takes the input from the question variable and converts it into an integer.
then returns it
Actual behaviour
Program gets to line with input call and freezes
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)The text was updated successfully, but these errors were encountered: