Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot configure tests in Visual Studio Code

When running the command "Python: Configure Tests" in Visual Studio Code I get following error:

command "python.configure tests" not found 

I uninstalled Python extension for vscode and tried to reinstall it but I get this error now:

Activating extension 'ms-python.python' failed: Expected a string, got undefined.
like image 302
Shital Shah Avatar asked Apr 02 '26 03:04

Shital Shah


1 Answers

It turned out I'd the following setting in my settings.json:

python.jediEnabled: true

After removing this setting, Python extension was installed successfully. After this, the command python.configure tests became available.

I would also recommend removing Anaconda Extension Pack as this might interfere with Python extension (though I'm not sure).

like image 86
Shital Shah Avatar answered Apr 03 '26 16:04

Shital Shah



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!