There is a pop-up showing “Timed out waiting for launcher to connect” in vscode while running python file

Viewed 3445
The below is my Launch.json file:
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: Current File",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal"
        }
    ]
}

Could someone please help with this? Not sure why i am getting this error. I ran the code in an online python compiler where it worked fine. So i can say that there is no error in the code. Still not sure why the pop up is showing up suddenly.

All help are greatly appreciated!!

1 Answers

check your version of python in the bottom left of vs code and make sure it is supported by the vs code python extension

Related