Type: Bug
Behaviour
Expected vs. Actual
Expected:
The list of conda environments in the extension matches the conda env list
(which is the same as folders in miniconda/envs
)
`conda env list` output
❯ conda env list
# conda environments:
#
base /opt/miniconda3
ai4er-workshop-gis /opt/miniconda3/envs/ai4er-workshop-gis
anaconda_full /opt/miniconda3/envs/anaconda_full
course_jovian_zero-to-gan_pytorch /opt/miniconda3/envs/course_jovian_zero-to-gan_pytorch
hack_2022_ecmwf_fluttering /opt/miniconda3/envs/hack_2022_ecmwf_fluttering
mamba /opt/miniconda3/envs/mamba
mres /opt/miniconda3/envs/mres
netcdf /opt/miniconda3/envs/netcdf
phd_ph1-01_uk_grid_network /opt/miniconda3/envs/phd_ph1-01_uk_grid_network
phd_ph1-02_pypsa-eur_grid /opt/miniconda3/envs/phd_ph1-02_pypsa-eur_grid
phd_ph3-01_data-loading /opt/miniconda3/envs/phd_ph3-01_data-loading
phd_ph4-01_Downloader-BASE /opt/miniconda3/envs/phd_ph4-01_Downloader-BASE
phd_ph4-02_pypsa-eur_large /opt/miniconda3/envs/phd_ph4-02_pypsa-eur_large
phd_ph5x-01-A_deepopf-v /opt/miniconda3/envs/phd_ph5x-01-A_deepopf-v
phd_ph5x-01-C_deepopf-scdc * /opt/miniconda3/envs/phd_ph5x-01-C_deepopf-scdc
pytorch_default /opt/miniconda3/envs/pytorch_default
snowflakes /opt/miniconda3/envs/snowflakes
tf_default /opt/miniconda3/envs/tf_default
zzz /opt/miniconda3/envs/zzz
Environment subfolders
❯ ls /opt/miniconda3/envs -1
ai4er-workshop-gis
anaconda_full
course_jovian_zero-to-gan_pytorch
hack_2022_ecmwf_fluttering
mamba
mres
netcdf
phd_ph1-01_uk_grid_network
phd_ph1-02_pypsa-eur_grid
phd_ph3-01_data-loading
phd_ph4-01_Downloader-BASE
phd_ph4-02_pypsa-eur_large
phd_ph5x-01-A_deepopf-v
phd_ph5x-01-C_deepopf-scdc
pytorch_default
snowflakes
tf_default
zzz
Actual:
Only some environments are showing up.
Steps to reproduce:
- Have a previous conda installation with several environments.
- Install the Python Environment Manager in VS Code
Diagnostic data
- Python version (& distribution if applicable, e.g. Anaconda): 3.10.4
- Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Conda
- Value of the
python.languageServer
setting: Default
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
Experiment 'pythonSurveyNotificationcf' is active
LSP Notebooks experiment is enabled
LSP Notebooks interactive window support is enabled
> conda info --json
> /opt/miniconda3/bin/python ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /opt/miniconda3/envs/ai4er-workshop-gis/bin/python ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /opt/miniconda3/envs/phd_ph4-02_pypsa-eur_large/bin/python ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /opt/miniconda3/envs/anaconda_full/bin/python ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /opt/miniconda3/envs/phd_ph5x-01-C_deepopf-scdc/bin/python ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> conda run -n phd_ph4-02_pypsa-eur_large --no-capture-output python ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/printEnvVariables.py
> conda run -n phd_ph4-02_pypsa-eur_large --no-capture-output python ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/printEnvVariables.py
Python interpreter path: /opt/miniconda3/envs/phd_ph5x-01-C_deepopf-scdc/bin/python
> conda run -n phd_ph5x-01-C_deepopf-scdc --no-capture-output python ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/printEnvVariables.py
> /opt/miniconda3/envs/course_jovian_zero-to-gan_pytorch/bin/python ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /opt/miniconda3/envs/hack_2022_ecmwf_fluttering/bin/python ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /opt/miniconda3/envs/mamba/bin/python ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /opt/miniconda3/envs/mres/bin/python ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /opt/miniconda3/envs/phd_ph1-01_uk_grid_network/bin/python ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /opt/miniconda3/envs/phd_ph1-02_pypsa-eur_grid/bin/python ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /opt/miniconda3/envs/phd_ph3-01_data-loading/bin/python ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /opt/miniconda3/envs/phd_ph4-01_Downloader-BASE/bin/python ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /opt/miniconda3/envs/phd_ph5x-01-A_deepopf-v/bin/python ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /opt/miniconda3/envs/pytorch_default/bin/python ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /opt/miniconda3/envs/snowflakes/bin/python ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /opt/miniconda3/envs/tf_default/bin/python ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /opt/miniconda3/envs/zzz/bin/python ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /bin/python2 ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /bin/python3 ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /usr/bin/python2 ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /usr/bin/python3 ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
> /opt/gurobi911/linux64/bin/python3.7 ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/interpreterInfo.py
Starting Pylance language server.
> conda run -n phd_ph4-02_pypsa-eur_large --no-capture-output python ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/printEnvVariables.py
> conda run -n phd_ph4-02_pypsa-eur_large --no-capture-output python ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/printEnvVariables.py
> conda run -n phd_ph5x-01-C_deepopf-scdc --no-capture-output python ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/printEnvVariables.py
> conda run -n phd_ph4-02_pypsa-eur_large --no-capture-output python ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/printEnvVariables.py
Jupyter provided interpreter path override: /opt/miniconda3/envs/phd_ph5x-01-C_deepopf-scdc/bin/python
> conda run -n phd_ph5x-01-C_deepopf-scdc --no-capture-output python ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/printEnvVariables.py
> conda info --json
Jupyter provided interpreter path override: /opt/miniconda3/envs/phd_ph5x-01-C_deepopf-scdc/bin/python
Jupyter provided interpreter path override: /opt/miniconda3/envs/phd_ph5x-01-C_deepopf-scdc/bin/python
DAP Server launched with command: /opt/miniconda3/envs/phd_ph5x-01-C_deepopf-scdc/bin/python /home/orage/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/lib/python/debugpy/adapter
> conda info --json
DAP Server launched with command: /opt/miniconda3/envs/phd_ph5x-01-C_deepopf-scdc/bin/python /home/orage/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/lib/python/debugpy/adapter
> conda run -n phd_ph5x-01-C_deepopf-scdc --no-capture-output python ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/printEnvVariables.py
> conda run -n phd_ph5x-01-C_deepopf-scdc --no-capture-output python ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.14.0/pythonFiles/printEnvVariables.py
Jupyter provided interpreter path override: /opt/miniconda3/envs/phd_ph5x-01-C_deepopf-scdc/bin/python
Output for Python Environments
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python Environments
)
> conda info --json
> /bin/python3 ~/.vscode/extensions/donjayamanne.python-environment-manager-1.0.4/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/donjayamanne.python-environment-manager-1.0.4/pythonFiles/interpreterInfo.py
> /bin/python2 ~/.vscode/extensions/donjayamanne.python-environment-manager-1.0.4/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/donjayamanne.python-environment-manager-1.0.4/pythonFiles/interpreterInfo.py
> /usr/bin/python2 ~/.vscode/extensions/donjayamanne.python-environment-manager-1.0.4/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/donjayamanne.python-environment-manager-1.0.4/pythonFiles/interpreterInfo.py
> /usr/bin/python3 ~/.vscode/extensions/donjayamanne.python-environment-manager-1.0.4/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/donjayamanne.python-environment-manager-1.0.4/pythonFiles/interpreterInfo.py
> /opt/miniconda3/bin/python ~/.vscode/extensions/donjayamanne.python-environment-manager-1.0.4/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/donjayamanne.python-environment-manager-1.0.4/pythonFiles/interpreterInfo.py
> /opt/gurobi911/linux64/bin/python3.7 ~/.vscode/extensions/donjayamanne.python-environment-manager-1.0.4/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/donjayamanne.python-environment-manager-1.0.4/pythonFiles/interpreterInfo.py
> /opt/miniconda3/envs/ai4er-workshop-gis/bin/python ~/.vscode/extensions/donjayamanne.python-environment-manager-1.0.4/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/donjayamanne.python-environment-manager-1.0.4/pythonFiles/interpreterInfo.py
> /opt/miniconda3/envs/anaconda_full/bin/python ~/.vscode/extensions/donjayamanne.python-environment-manager-1.0.4/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/donjayamanne.python-environment-manager-1.0.4/pythonFiles/interpreterInfo.py
> /opt/miniconda3/envs/course_jovian_zero-to-gan_pytorch/bin/python ~/.vscode/extensions/donjayamanne.python-environment-manager-1.0.4/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/donjayamanne.python-environment-manager-1.0.4/pythonFiles/interpreterInfo.py
> conda run -n netcdf --no-capture-output --live-stream python ~/.vscode/extensions/donjayamanne.python-environment-manager-1.0.4/pythonFiles/get_output_via_markers.py -c "import sys;print(sys.executable)"
> /opt/miniconda3/envs/hack_2022_ecmwf_fluttering/bin/python ~/.vscode/extensions/donjayamanne.python-environment-manager-1.0.4/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/donjayamanne.python-environment-manager-1.0.4/pythonFiles/interpreterInfo.py
> /opt/miniconda3/envs/mamba/bin/python ~/.vscode/extensions/donjayamanne.python-environment-manager-1.0.4/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/donjayamanne.python-environment-manager-1.0.4/pythonFiles/interpreterInfo.py
> /opt/miniconda3/envs/mres/bin/python ~/.vscode/extensions/donjayamanne.python-environment-manager-1.0.4/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/donjayamanne.python-environment-manager-1.0.4/pythonFiles/interpreterInfo.py
User Settings
condaPath: "<placeholder>"
languageServer: "Pylance"
Extension version: 1.0.4
VS Code version: Code 1.71.2 (74b1f979648cc44d385a2286793c226e611f59e7, 2022-09-14T21:12:14.256Z)
OS version: Linux x64 5.15.0-48-generic snap
Modes:
Sandboxed: No
System Info
|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz (8 x 2000)|
|GPU Status|2d_canvas: unavailable_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: disabled_off|
|Load (avg)|2, 2, 2|
|Memory (System)|15.48GB (4.93GB free)|
|Process Argv|--no-sandbox --force-user-env --unity-launch --crash-reporter-id e0b4888e-7039-4296-a9e5-65e00d3fce86|
|Screen Reader|no|
|VM|0%|
|DESKTOP_SESSION|ubuntu|
|XDG_CURRENT_DESKTOP|Unity|
|XDG_SESSION_DESKTOP|ubuntu|
|XDG_SESSION_TYPE|x11|
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411cf:30557515
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
azure-dev_surveyone:30548225
i497e931:30553904
i5d37513:30580093
pyindex848:30577860
fc301958:30573243
classify