Test: Improvements to "No Python interpreter" selected prompts
See original GitHub issueRefs: https://github.com/microsoft/vscode-python/issues/17667
- anyOS @isidorn
- anyOS @bamurtaugh
Complexity: 3
Requirements:
- Access to a machine with no Python installed, maybe a devcontainer for linux.
- Pre-release version of the Python extension installed
Steps:
Case 1: No Python installed
- Open a Python file, and use button on top right to run it:
- Verify the following prompt shows up:
- Verify clicking
Select Interpreter
opens the quickpick saying:
Case 2: Invalid Python selected
- Have Python installed.
- Select an invalid interpreter. You can use
Python: Select Interpreter
command and chooseEnter interpreter path...
item. - Verify following prompt shows up on running Python file in this case:
Case 3: Invalid Python selected: multiroot scenario with multiple workspace folders opened
- In this case verify the prompt message describes the workspace folder affected:
Issue Analytics
- State:
- Created a year ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Trying to get PyCharm to work, keep getting "No Python ...
Open your settings dialogue CTRL + ALT + S · Then you will need to type in interpreter in the search box: ·...
Read more >Using Python environments in VS Code
Using Python environments in VS Code. This article discusses the helpful Python environments features available in Visual Studio Code. An "environment" in ...
Read more >[Solved] No python interpreter configured for the project pycharm
" No Python interpreter selected " is the most common error while writing python code in Pycharm. In this video, we will see...
Read more >doctest — Test interactive Python examples — Python 3.11.1 ...
You can instruct the Python interpreter to run the doctest module directly from the standard library and pass the module name(s) on the...
Read more >Usage and Invocations — pytest documentation
You can invoke testing through the Python interpreter from the command line: ... Pytest supports several ways to run and select tests from...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I was able to
rm
all instances of python that were listed in thePython: Select Interpreter
command and then test this item. Thanks for help.python -c"import sys;print(sys.executable)"
to get the full path.An alternative could be to run
Python: Select Interpreter
command and delete every binary file listed there.