notification was needed to select the right env
See original GitHub issueTesting #19883
My python3
is installed at /Library/Frameworks/Python.framework/Versions/3.9/bin/python3
.
When I ran the command, it couldn’t find any installations and had automatically selected python 2, which was not working
Python interpreter path: ~/.pyenv/versions/2.7.18/bin/python
> ~/.pyenv/versions/2.7.18/bin/python ~/.vscode-insiders/extensions/ms-python.python-2022.15.12701023/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.15.12701023/pythonFiles/interpreterInfo.py
Starting Pylance language server.
[ERROR 2022-8-27 12:25:58.598]: Virtual env creation requires an interpreter.
Running Env creation script: [
'/Library/Frameworks/Python.framework/Versions/3.9/bin/python3',
'/Users/meganrogge/.vscode-insiders/extensions/ms-python.python-2022.15.12701023/pythonFiles/create_venv.py',
'--git-ignore',
'--install'
]
Knowing I had installed python3
, and had aliased it to python
, I found the path of python3
and inserted it into the input box. The logs show that it succeeded after that.
Issue Analytics
- State:
- Created a year ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
While creating virtual environment Python extension does not ...
While creating virtual environment VS Code does not prompt with venv notification.
Read more >Conda environment not showing up in VS Code - Stack Overflow
in vscode press ctrl+shift+p and type python:Select Interpreter you should see all the environment there. If it does not appear create a .py ......
Read more >Notification runtime permission - Android Developers
When you request notification permissions within your app, do so in the correct context, so that it's explicitly clear what the notifications are...
Read more >Notify function in Power Apps - Power Platform - Microsoft Learn
The Notify function displays a banner message to the user at the top of the screen, overlaying what is currently displayed. The notification...
Read more >Using Python environments in VS Code
Once you activate your virtual environment, you'll need to identify how to ... After selecting the desired interpreter or Python version, a notification...
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 think I was over simplifying, I think we need to let the UI show. For the reason, that if the user only has python 2.7, then this is the only way they know. Also, the experience with showing discovery progress and selection is better with the select interpreter UI.
Thanks. I assume you mean the dropdown opened by
Python: Select Interpreter
.@karthiknadig It seems to me that the bug is here: https://github.com/microsoft/vscode-python/blob/e23240eeea05f8830bd04b3812be121efde17177/src/client/pythonEnvironments/creation/provider/venvCreationProvider.ts#L133. We’re not checking whether a refresh is going on at the moment and automatically select the interpreter. We need to either wait for refresh to complete or always show the dropdown.