Repository navigation
Remove "Recommended" tag in create environment quickpick for interpreters #20260
Copy link
Copy link
Closed
Closed
Copy link
Labels
area-environmentsFeatures relating to handling interpreter environmentsFeatures relating to handling interpreter environmentsauthor-verification-requestedIssues potentially verifiable by issue authorIssues potentially verifiable by issue authordebtCode quality issuesCode quality issuesneeds PRReady to be worked onReady to be worked onverification-neededVerification of issue is requestedVerification of issue is requestedverifiedVerification succeededVerification succeeded
Milestone
Description
Type: Bug
- Create an empty folder and open in VS Code
- Create a dev container from the official conda template
Anaconda (Python 3) - Open the folder in dev container
- Install Python and Jupyte prerelease
- Switch kernel picker type to mru
notebook.kernelPicker.type: "mru" - Open a notebook, click on the kernel picker
- Select another kernel...
- Local Python Environment
- Create Python Environment
- Venv
It now recommends /usr/bin/python3 and picking this one will lead to following error
Starting Pylance language server.
Jupyter provided interpreter path override: /opt/conda/bin/python
> conda run -n base --no-capture-output python ~/.vscode-server-insiders/extensions/ms-python.python-2022.19.13251009/pythonFiles/get_output_via_markers.py ~/.vscode-server-insiders/extensions/ms-python.python-2022.19.13251009/pythonFiles/printEnvVariables.py
Jupyter provided interpreter path override: /opt/conda/bin/python
Jupyter provided interpreter path override: /opt/conda/bin/python
Running Env creation script: [
'/usr/bin/python3',
'/home/vscode/.vscode-server-insiders/extensions/ms-python.python-2022.19.13251009/pythonFiles/create_venv.py',
'--git-ignore',
'--install'
]
Traceback (most recent call last):
File "/home/vscode/.vscode-server-insiders/extensions/ms-python.python-2022.19.13251009/pythonFiles/create_venv.py", line 136, in <module>
main(sys.argv[1:])
File "/home/vscode/.vscode-server-insiders/extensions/ms-python.python-2022.19.13251009/pythonFiles/create_venv.py", line 116, in main
raise VenvError("CREATE_VENV.PIP_NOT_FOUND")
__main__.VenvError: CREATE_VENV.PIP_NOT_FOUND
[ERROR 2022-10-22 0:38:30.929]: Error while running venv creation script: CREATE_VENV.PIP_NOT_FOUND
[ERROR 2022-10-22 0:38:30.929]: CREATE_VENV.PIP_NOT_FOUND
[ERROR 2022-10-22 0:44:24.577]: Virtual env creation requires an interpreter.
[ERROR 2022-10-22 0:45:47.119]: Virtual env creation requires an interpreter.
[ERROR 2022-10-22 0:48:28.883]: Virtual env creation requires an interpreter.
It recommends the global python interpreter but that one doesn't work due to missing pip. cc Don Jayamanne (@DonJayamanne)
Extension version: 2022.19.13251009
VS Code version: Code - Insiders 1.74.0-insider (fef85ea, 2022-11-21T05:22:37.848Z)
OS version: Windows_NT x64 10.0.22623
Modes:
Sandboxed: Yes
Remote OS version: Linux x64 5.10.16.3-microsoft-standard-WSL2
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz (8 x 3600) |
| GPU Status | 2d_canvas: enabled canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_renderer: enabled_on video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: disabled_off |
| Load (avg) | undefined |
| Memory (System) | 31.93GB (14.09GB free) |
| Process Argv | .\py-container\ --enable-proposed-api joyceerhl.vscode-pyolite --enable-proposed-api rebornix.better-jupyter-errors --enable-proposed-api donjayamanne.kusto --crash-reporter-id e73ca734-e67c-473d-8c47-80c5407fc859 |
| Screen Reader | no |
| VM | 0% |
| Item | Value |
|---|---|
| Remote | Dev Container: Anaconda (Python 3) |
| OS | Linux x64 5.10.16.3-microsoft-standard-WSL2 |
| CPUs | Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz (8 x 3600) |
| Memory (System) | 15.60GB (14.11GB free) |
| VM | 0% |
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30422396
pythontb:30258533
pythonptprofiler:30281269
vshan820:30294714
pythondataviewer:30285072
vscod805:30301674
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30404738
cppdebug:30492333
vsclangdf:30492506
c4g48928:30535728
dsvsc012:30540252
pynewvextcfv2:30611228
pylantcb52:30590116
pyindex848:30611229
nodejswelcome1:30587009
gswce1:30602633
pyind779:30611226
dbltrim-noruby:30604474
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-environmentsFeatures relating to handling interpreter environmentsFeatures relating to handling interpreter environmentsauthor-verification-requestedIssues potentially verifiable by issue authorIssues potentially verifiable by issue authordebtCode quality issuesCode quality issuesneeds PRReady to be worked onReady to be worked onverification-neededVerification of issue is requestedVerification of issue is requestedverifiedVerification succeededVerification succeeded

Activity
karrtikr commentedon Dec 12, 2022
We should probably remove the
"Recommended"tag altogether in this case, and let the user choose the interpreter.[-]Create Python Env failure with conda[/-][+]Remove "Recommended" tag in create environment quickpick for interpreters[/+]Add option to skip showing recommended interpreter in quick pick API (#…
DonJayamanne commentedon Feb 21, 2023
Oop, accidentally opened this issue.
Merge remote-tracking branch 'upstream/main'
Merge remote-tracking branch 'upstream/main'