question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

notification was needed to select the right env

See original GitHub issue

Testing #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:closed
  • Created a year ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
karthiknadigcommented, Sep 27, 2022

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.

1reaction
karrtikrcommented, Sep 27, 2022

And yes, it did show up in the select interpreter dropdown this time

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found