Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the previously specified interpreter for a project regardless of environment #20644

Closed
zebra-f opened this issue Feb 3, 2023 · 39 comments · Fixed by #20667
Closed

Use the previously specified interpreter for a project regardless of environment #20644

zebra-f opened this issue Feb 3, 2023 · 39 comments · Fixed by #20667
Assignees
Labels
area-environments Features relating to handling interpreter environments feature-request Request for new features or functionality needs community feedback Awaiting community feedback verified Verification succeeded
Milestone

Comments

@zebra-f
Copy link

zebra-f commented Feb 3, 2023

Original title: Visual Studio Code doesn't select the correct Python interpreter at launch

[Kubuntu 22.04]

Screenshot_20230203_125222

To fix it I have to manually select the first interpreter with the 'star' and 'Recommended' tag from the list, however it appears to be already selected (bottom right 3.10.6 ('.venv':venv)) after launch.

Steps to reproduce:

$ mkdir venvtest
$ cd venvtest
$ python3 -m venv .venv  
$ source .venv/bin/activate
$ pip install numpy
$ touch ptest.py
$ code .    

Python: Show Language Server Output:

[Info  - 1:44:07 PM] (21220) Pylance language server 2023.2.10 (pyright 01758105) starting
[Info  - 1:44:07 PM] (21220) Server root directory: /home/username/.vscode/extensions/ms-python.vscode-pylance-2023.2.10/dist
[Info  - 1:44:07 PM] (21220) Starting service instance "venvtest"
[Info  - 1:44:07 PM] (21220) No configuration file found.
[Info  - 1:44:07 PM] (21220) No pyproject.toml file found.
[Info  - 1:44:07 PM] (21220) Setting pythonPath for service "venvtest": "/home/username/Desktop/Tests/Python/venvtest/.venv"
[Warn  - 1:44:07 PM] (21220) stubPath /home/username/Desktop/Tests/Python/venvtest/typings is not a valid directory.
[Info  - 1:44:07 PM] (21220) Assuming Python platform Linux
[Info  - 1:44:07 PM] (21220) Searching for source files
[Info  - 1:44:07 PM] (21220) Found 1 source file
[Info  - 1:44:07 PM] (21220) Background analysis(1) root directory: /home/username/.vscode/extensions/ms-python.vscode-pylance-2023.2.10/dist
[Info  - 1:44:07 PM] (21220) Background analysis(1) started   

Edit (1): Python: Report Issue...

Type: Bug

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.10.6
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
  • Value of the python.languageServer setting: Default
Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

User Settings


languageServer: "Pylance"

VS Code version: Code 1.75.0 (e2816fe719a4026ffa1ee0189dc89bdfdbafb164, 2023-02-01T15:29:17.766Z)
OS version: Linux x64 5.15.0-58-generic
Modes:
Sandboxed: No

System Info
Item Value
CPUs Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz (4 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: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 1, 1, 1
Memory (System) 15.49GB (10.41GB free)
Process Argv . --crash-reporter-id defc98c6-3228-4e0f-9040-d3ced4598bef
Screen Reader no
VM 0%
DESKTOP_SESSION plasma
XDG_CURRENT_DESKTOP KDE
XDG_SESSION_DESKTOP KDE
XDG_SESSION_TYPE x11
Extensions (12)
Extension Author (truncated) Version
prettier-vscode esb 9.10.4
vscode-docker ms- 1.23.3
isort ms- 2022.8.0
python ms- 2023.2.0
vscode-pylance ms- 2023.2.10
jupyter ms- 2023.1.2000312134
jupyter-keymap ms- 1.0.0
jupyter-renderers ms- 1.0.14
vscode-jupyter-cell-tags ms- 0.1.6
vscode-jupyter-slideshow ms- 0.1.5
material-icon-theme PKi 4.23.1
LiveServer rit 5.7.9

(3 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
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_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vscaat:30438848
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
azure-dev_surveyone:30548225
vsccc:30610678
pyindex848cf:30577861
nodejswelcome1cf:30587006
3biah626:30602489
f6dab269:30613381
pythonsymbol12cf:30657549
2i9eh265:30646982


Edit (2): Python Show Output

LSP Notebooks experiment is enabled
LSP Notebooks interactive window support is enabled
VS Code was launched from an activated environment: '.venv', selecting it as the interpreter for workspace.
> conda info --json
Python interpreter path: ./.venv/bin/python
> ./.venv/bin/python -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> .venv/bin/python -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> ~/miniconda3/bin/python -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> ~/miniconda3/envs/django-chapter-1/bin/python -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> ~/miniconda3/envs/python310/bin/python -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> /bin/python3 -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> /usr/bin/python3 -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
Starting Pylance language server.
Python interpreter path: .venv/bin/python  

and these two lines are printed if I manually select recommended interpreter to fix the issue:

Python interpreter path: ./.venv/bin/python
> . ./.venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/printEnvVariables.py
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Feb 3, 2023
@brettcannon
Copy link
Member

Can you please attach the output from the Python channel in the Output panel (or get all the details that the Python: report issue command pulls together as covered by https://aka.ms/pvsc-bug)?

@daeh
Copy link

daeh commented Feb 3, 2023

I think I'm having a related issue. Since this last update, all of my projects open with the default interpreter. I can select the right interpreter, and that works for the session. But when VS code is restarted, it doesn't remember the correct interpreter and opens the project with the default. All of the interpreters (including the one that gets defaulted to) are conda environments.

I'm using MacOS: 12.6.3
VS code: 1.75.0
Python extension: v2023.2.0

  • Python version (& distribution if applicable, e.g. Anaconda): 3.10.8
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Conda
  • Value of the python.languageServer setting: Pylance

Output of python extension when I open a project and set the interpreter to enviaa:

LSP Notebooks experiment is enabled
LSP Notebooks interactive window support is enabled
> conda info --json
VS Code was launched from an activated environment: 'lab', selecting it as the interpreter for workspace.
Python interpreter path: ~/miniforge3/envs/lab/bin/python
> /usr/bin/python3 -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> conda run -n lab --no-capture-output python ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/printEnvVariables.py
> conda run -n lab --no-capture-output python ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/printEnvVariables.py
> conda run -n ve_iaa_pytorch --no-capture-output python ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/printEnvVariables.py
> conda run -n lab --no-capture-output python ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/printEnvVariables.py
> ~/miniforge3/envs/lab/bin/python -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> ~/Applications/fsl/fslpython/bin/python -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> ~/Applications/fsl/fslpython/envs/fslpython/bin/python -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> ~/miniforge3/bin/python -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> ~/miniforge3/envs/enviaa/bin/python -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> /opt/homebrew/bin/python3 -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> /opt/homebrew/bin/python3.11 -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> /opt/homebrew/bin/python3.9 -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
Starting Pylance language server.
Python interpreter path: ~/miniforge3/envs/enviaa/bin/python
> conda run -n enviaa --no-capture-output python ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/printEnvVariables.py

Output when I reopen the project and it defaults to the lab interpreter:

LSP Notebooks experiment is enabled
LSP Notebooks interactive window support is enabled
> conda info --json
VS Code was launched from an activated environment: 'lab', selecting it as the interpreter for workspace.
Python interpreter path: ~/miniforge3/envs/lab/bin/python
> /usr/bin/python3 -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> conda run -n lab --no-capture-output python ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/printEnvVariables.py
> conda run -n lab --no-capture-output python ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/printEnvVariables.py
> conda run -n enviaa --no-capture-output python ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/printEnvVariables.py
> conda run -n lab --no-capture-output python ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/printEnvVariables.py
> ~/miniforge3/envs/lab/bin/python -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> ~/Applications/fsl/fslpython/bin/python -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> ~/Applications/fsl/fslpython/envs/fslpython/bin/python -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> ~/miniforge3/bin/python -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> ~/miniforge3/envs/enviaa/bin/python -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> /opt/homebrew/bin/python3 -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> /opt/homebrew/bin/python3.11 -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> /opt/homebrew/bin/python3.9 -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
Starting Pylance language server.

Output of the Jupyter extension when VS code starts and defaults to lab rather than enviaa:

Visual Studio Code (1.75.0, undefined, desktop)
Jupyter Extension Version: 2023.1.2000312134.
Python Extension Version: 2023.2.0.
Workspace folder /Users/dae/***
warn 15:27:53.711: Exception while attempting zmq : No native build was found for platform=darwin arch=arm64 runtime=electron abi=106 uv=1 armv=8 libc=glibc node=16.14.2 electron=19.1.9
    loaded from: /Users/dae/.vscode/extensions/ms-toolsai.jupyter-2023.1.2000312134/out/node_modules/zeromq

info 15:27:53.770: Attempting to start a server because of preload conditions ...
info 15:27:53.778: LSP Notebooks experiment is enabled
info 15:27:53.778: Checking for server existence.
info 15:27:53.979: Checking for server existence.
info 15:27:53.979: Connecting to server
info 15:27:53.980: Connecting server kernel http:https://localhost:9028/
Connecting to Jupyter server at http:https://localhost:9028/
info 15:27:53.980: Creating server with url : http:https://localhost:9028/
info 15:27:53.990: Server started.
info 15:27:53.991: Creating server with url : http:https://localhost:9028/
error 15:27:54.011: Error fetching remote kernels: [FetchError: request to http:https://localhost:9028/api/kernels?1675456073993 failed, reason: connect ECONNREFUSED 127.0.0.1:9028
	at ClientRequest.<anonymous> (/Users/dae/.vscode/extensions/ms-toolsai.jupyter-2023.1.2000312134/out/extension.node.js:2:1160163)
	at ClientRequest.emit (node:events:526:28)
	at Socket.socketErrorListener (node:_http_client:442:9)
	at Socket.emit (node:events:526:28)
	at emitErrorNT (node:internal/streams/destroy:157:8)
	at emitErrorCloseNT (node:internal/streams/destroy:122:3)
	at process.processTicksAndRejections (node:internal/process/task_queues:83:21)]
error 15:27:54.026: UniversalRemoteKernelFinder: Failed to get kernels without cache [FetchError: request to http:https://localhost:9028/api/kernels?1675456073993 failed, reason: connect ECONNREFUSED 127.0.0.1:9028
	at ClientRequest.<anonymous> (/Users/dae/.vscode/extensions/ms-toolsai.jupyter-2023.1.2000312134/out/extension.node.js:2:1160163)
	at ClientRequest.emit (node:events:526:28)
	at Socket.socketErrorListener (node:_http_client:442:9)
	at Socket.emit (node:events:526:28)
	at emitErrorNT (node:internal/streams/destroy:157:8)
	at emitErrorCloseNT (node:internal/streams/destroy:122:3)
	at process.processTicksAndRejections (node:internal/process/task_queues:83:21)]
error 15:27:54.026: SessionManager:getKernelSpecs failure:  [Error: Poll (@jupyterlab/services:KernelSpecManager#specs) is disposed.
	at e.dispose (/Users/dae/.vscode/extensions/ms-toolsai.jupyter-2023.1.2000312134/out/extension.node.js:2:172134)
	at u.dispose (/Users/dae/.vscode/extensions/ms-toolsai.jupyter-2023.1.2000312134/out/extension.node.js:2:63778)
	at Km.dispose (/Users/dae/.vscode/extensions/ms-toolsai.jupyter-2023.1.2000312134/out/extension.node.js:17:280038)
	at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
	at async Hm.listKernelsFromConnection (/Users/dae/.vscode/extensions/ms-toolsai.jupyter-2023.1.2000312134/out/extension.node.js:17:292430)]
info 15:27:55.758: Process Execution: > ~/miniforge3/envs/enviaa/bin/python -m pip list
> ~/miniforge3/envs/enviaa/bin/python -m pip list
info 15:27:55.808: Process Execution: > ~/miniforge3/envs/lab/bin/python -c "import jupyter;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
> ~/miniforge3/envs/lab/bin/python -c "import jupyter;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
info 15:27:55.831: Process Execution: > ~/miniforge3/envs/lab/bin/python -c "import notebook;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
> ~/miniforge3/envs/lab/bin/python -c "import notebook;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
info 15:27:55.844: Process Execution: > ~/miniforge3/envs/lab/bin/python -m pip list
> ~/miniforge3/envs/lab/bin/python -m pip list
info 15:27:55.975: Process Execution: > ~/miniforge3/envs/lab/bin/python -m jupyter kernelspec --version
> ~/miniforge3/envs/lab/bin/python -m jupyter kernelspec --version
info 15:27:56.207: Connecting to server
info 15:27:56.207: Launching server
info 15:27:56.207: Starting Notebook
info 15:27:56.210: Generating custom default config at /var/folders/fw/d09jz83j7n785m82v_22k35w0000gn/T/17707079-22f7-4d3d-8298-daf6f25803e0/jupyter_notebook_config.py
Starting Jupyter from ~/miniforge3/envs/lab/bin/python with arguments --no-browser --notebook-dir="/Users/dae/***" --config=/var/folders/fw/d09jz83j7n785m82v_22k35w0000gn/T/17707079-22f7-4d3d-8298-daf6f25803e0/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
info 15:27:56.212: Process Execution: > ~/miniforge3/envs/lab/bin/python -m jupyter notebook --no-browser --notebook-dir="/Users/dae/***" --config=/var/folders/fw/d09jz83j7n785m82v_22k35w0000gn/T/17707079-22f7-4d3d-8298-daf6f25803e0/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
> ~/miniforge3/envs/lab/bin/python -m jupyter notebook --no-browser --notebook-dir="/Users/dae/c***" --config=/var/folders/fw/d09jz83j7n785m82v_22k35w0000gn/T/17707079-22f7-4d3d-8298-daf6f25803e0/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
/Users/dae/miniforge3/envs/lab/lib/python3.10/site-packages/traitlets/traitlets.py:2548: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use '/Users/dae/***' instead of '"/Users/dae/***"' if you require traitlets >=5.
  warn(
[W 15:27:57.221 NotebookApp] Loading JupyterLab as a classic notebook (v6) extension.
[C 15:27:57.221 NotebookApp] You must use Jupyter Server v1 to load JupyterLab as notebook extension. You have v2.1.0 installed.
    You can fix this by executing:
        pip install -U "jupyter-server<2.0.0"
[I 15:27:57.223 NotebookApp] Serving notebooks from local directory: /Users/dae/***
[I 15:27:57.223 NotebookApp] Jupyter Notebook 6.5.2 is running at:
[I 15:27:57.223 NotebookApp] http:https://localhost:8888/?token=***
[I 15:27:57.223 NotebookApp]  or http:https://127.0.0.1:8888/?token=***
info 15:27:57.224: Process Execution: > ~/miniforge3/envs/lab/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2023.1.2000312134/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> ~/miniforge3/envs/lab/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2023.1.2000312134/pythonFiles/vscode_datascience_helpers/getServerInfo.py
[I 15:27:57.223 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
info 15:27:57.225: Process Execution: > ~/miniforge3/envs/lab/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2023.1.2000312134/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> ~/miniforge3/envs/lab/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2023.1.2000312134/pythonFiles/vscode_datascience_helpers/getServerInfo.py
[C 15:27:57.225 NotebookApp] 
    
    To access the notebook, open this file in a browser:
        file:https:///Users/dae/Library/Jupyter/runtime/nbserver-11203-open.html
    Or copy and paste one of these URLs:
        http:https://localhost:8888/?token=***
     or http:https://127.0.0.1:8888/?token=***
info 15:27:57.226: Process Execution: > ~/miniforge3/envs/lab/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2023.1.2000312134/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> ~/miniforge3/envs/lab/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2023.1.2000312134/pythonFiles/vscode_datascience_helpers/getServerInfo.py
info 15:27:57.634: Connecting server kernel http:https://localhost:8888/
info 15:27:57.634: Creating server with url : http:https://localhost:8888/
info 15:27:57.637: Server started.

@brettcannon
Copy link
Member

Output panel logs would still be appreciated.

@daeh
Copy link

daeh commented Feb 3, 2023

@brettcannon sorry, updated.

the line
VS Code was launched from an activated environment: 'lab', selecting it as the interpreter for workspace.
makes me wonder if the python extension is overriding the workspace interpreter because I activate the lab env in my .zshrc

@maurczz
Copy link

maurczz commented Feb 3, 2023

Dealing with the same exact issue right now, switching to the pre-release version of the extension seems to have fixed the issue.

@zebra-f
Copy link
Author

zebra-f commented Feb 3, 2023

@brettcannon
Updated.

@daeh
Copy link

daeh commented Feb 3, 2023

Updated.

fyi it doesn't look like the output from the python extension was automatically included

@daeh
Copy link

daeh commented Feb 3, 2023

Dealing with the same exact issue right now, switching to the pre-release version of the extension seems to have fixed the issue.

Prerelease v2023.3.10341119 doesn't change the behavior for me

@zebra-f
Copy link
Author

zebra-f commented Feb 4, 2023

Update

If I open Visual Studio Code by simply clicking on the icon instead from terminal it will load everything correctly (but only after I manually select recommended interpreter manually), built in terminal will also have activated virtual environment, here is the output:

LSP Notebooks experiment is enabled
LSP Notebooks interactive window support is enabled
> conda info --json
Python interpreter path: ./.venv/bin/python
> . ./.venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/printEnvVariables.py
> ./.venv/bin/python -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> /bin/python3 -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> /usr/bin/python3 -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> ~/miniconda3/bin/python -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> ~/miniconda3/envs/django-chapter-1/bin/python -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> ~/miniconda3/envs/python310/bin/python -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
Starting Pylance language server.   

To be clear what's going on:
I open terminal
I type in terminal

source .venv/bin/activate   
code .  

I select manually recommended interpreter that fixes the issue
I close Visual Studio Code
I open Visual Studio Code by clicking on its icon (there is no issue)
I close Visual Studio Code
I open Visual Studio Code by clicking on its icon (there is no issue)
I close Visual Studio Code (you get the point)
I type in terminal again

code .

and now what's interesting, sometimes it will open without the issue, sometimes there will be a problem: Import "numpy" could not be resolved... but built in terminal will have activated (.venv) and most of the time it will have a problem and terminal won't have activated (.venv). (Edit: this behavior is not related to opening via the icon, It the same by running code . again right after selecting the correct interpreter and closing Visual Studio Code.)

Also I noticed that when I select correct interpreter after opening via terminal that fixes the import problem, built in terminal won't have activated virtual environment (If I create a new terminal after selecting correct interpreter with the + sign, it will have activated environment).

@maurczz can you test it?

@karrtikr
Copy link

karrtikr commented Feb 4, 2023

@zebra-f Sorry I don't quite understand the issue with your original bug report #20644 (comment). The Interpreter you intend to select ./.venv/bin/python is already selected by the extension (.venv means the same thing as ./.venv/bin/python). So I'm not sure what is there to fix.

@karrtikr
Copy link

karrtikr commented Feb 4, 2023

makes me wonder if the python extension is overriding the workspace interpreter because I activate the lab env in my .zshrc

@daeh Actually yes, although we only intend to do it when lab is explicitly activated, which is not the case with you. Curious, why do you have .zshrc set to automatically activate lab when you intend to use a different environment (enviaa) as your interpreter?

You temporarily fix the issue by reverting to previous version of the extension. Follow the prompts from "Extensions: Install Specific Version of Extension..." in the command palette:

image

@zebra-f
Copy link
Author

zebra-f commented Feb 4, 2023

So I'm not sure what is there to fix.

@karrtikr me neither, but as I have said, there is a problem- Import "numpy" could not be resolved Pylance... and there is also that Coulndn't start client isort popup window.
On the screenshot the first interpreter from the list won't have this issue (it's not selected, I have to do it manually). After selecting it (check my update), closing Visual Studio Code and reopening it again by clicking on the icon (or being lucky with code .- again look at update) it will have the first one from the list selected and there will be no issue, the second interpreter, highlighted on screenshot won't be even present.
Also if I open Visual Studio Code for the first time (with the problem) and I select manually the first interpreter from the list to fix it I won't be able to select the second one again even thought it will be present.

Here is the output when I get lucky reopening with code . method without the issue:

LSP Notebooks experiment is enabled
LSP Notebooks interactive window support is enabled
VS Code was launched from an activated environment: '.venv', selecting it as the interpreter for workspace.
> conda info --json
Python interpreter path: ./.venv/bin/python
> . ./.venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/printEnvVariables.py
> ./.venv/bin/python -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> ~/miniconda3/bin/python -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> ~/miniconda3/envs/django-chapter-1/bin/python -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> ~/miniconda3/envs/python310/bin/python -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> /bin/python3 -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> /usr/bin/python3 -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
> .venv/bin/python -I ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.2.0/pythonFiles/interpreterInfo.py
Starting Pylance language server.    

(.venv means the same thing as ./.venv/bin/python).

well only ./.venv/bin/python appears to be working correctly.

@zebra-f
Copy link
Author

zebra-f commented Feb 4, 2023

https://streamable.com/bp75s5 sorry for the quality, but important parts should be visible.
At 0:50 I was lucky (already mentioned in update).
At 1:55 I'm trying to select the second interpreter.

@karrtikr
Copy link

karrtikr commented Feb 4, 2023

Thanks, I understand the problem. Pylance and isort are using the wrong path to executable, I'll open the respective issues on their end.

@karrtikr
Copy link

karrtikr commented Feb 4, 2023

Can you provide the isort logs from the output panel? Alternatively, you can open an issue here https://github.com/microsoft/vscode-isort.

@zebra-f
Copy link
Author

zebra-f commented Feb 4, 2023

Opening with problems:

Name: isort
Module: isort
Python extension loading
Waiting for interpreter from python extension.
Python extension loaded
[Error - 10:41:57 AM] Starting client failed
Launching server using command /.venv/bin/python failed.

Opening without problems:

Name: isort
Module: isort
Python extension loading
Waiting for interpreter from python extension.
Python extension loaded
CWD Server: /home/rafal/Desktop/Tests/Python/venvtest
sys.path used to run Server:
   /home/rafal/.vscode/extensions/ms-python.isort-2022.8.0/bundled/libs
   /home/rafal/.vscode/extensions/ms-python.isort-2022.8.0/bundled/tool
   /usr/lib/python310.zip
   /usr/lib/python3.10
   /usr/lib/python3.10/lib-dynload
   /home/rafal/Desktop/Tests/Python/venvtest/.venv/lib/python3.10/site-packages
Settings used to run Server:
[
    {
        "check": false,
        "workspace": "file:https:///home/rafal/Desktop/Tests/Python/venvtest",
        "logLevel": "error",
        "args": [],
        "severity": {
            "W": "Warning",
            "E": "Hint"
        },
        "path": [],
        "interpreter": [
            "/home/rafal/Desktop/Tests/Python/venvtest/.venv/bin/python"
        ],
        "importStrategy": "useBundled",
        "showNotifications": "off"
    }
]

/home/rafal/Desktop/Tests/Python/venvtest/.venv/bin/python -m isort --version-number
CWD Linter: /home/rafal/Desktop/Tests/Python/venvtest
Version info for isort running for /home/rafal/Desktop/Tests/Python/venvtest:
5.10.1

SUPPORTED isort>=5.10.1
FOUND isort==5.10.1

@daeh
Copy link

daeh commented Feb 4, 2023

Curious, why do you have .zshrc set to automatically activate lab when you intend to use a different environment (enviaa) as your interpreter?

lab is the default env for the system. I have specific conda environments for different vs code projects.

There isn't just one environment I intend to use as the interpreter. I have about a dozen active projects and they each use a dedicated conda interpreter. Previously, when I opened a project it used the correct interpreter, but now they all default to the lab env when opened.

@karrtikr
Copy link

karrtikr commented Feb 4, 2023

@daeh Gotcha. Instead of .zshrc, you can also use python.defaultInterpreterPath User setting to specify default env for VSCode, let me know! Sorry for the trouble.

@daeh
Copy link

daeh commented Feb 4, 2023

thanks @karrtikr . The ~/.zshrc activation of the lab conda env is intended for the rest of the system, not VS Code. E.g. when i open a system terminal it uses the lab python path.

Before this extension issue started, the User python.defaultInterpreterPath was set to the lab path. Individual VS Code projects still activated the correct conda env when opened. Since the extension update, I've tried unsetting the User python.defaultInterpreterPath, and I have tried setting the Workspace python.defaultInterpreterPath to the project's intended conda env. But all the projects still revert back to the lab env when opened.

Maybe also worth being explicit: I'm opening VS Code by clicking the icon in the MacOS doc. I'm not launching vscode from a system terminal window.

@karrtikr
Copy link

karrtikr commented Feb 7, 2023

@zebra-f FYI I've opened #20660 and #20657 regarding the bugs you're seeing and merged possible fixes, please have a look.

@karrtikr
Copy link

karrtikr commented Feb 7, 2023

@daeh Thanks, turning this into a feature request to provide a way to override the automatic selection of activated environment at startup. We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue.

@karrtikr karrtikr removed the triage-needed Needs assignment to the proper sub-team label Feb 7, 2023
@karrtikr

This comment was marked as resolved.

@wasita

This comment was marked as resolved.

@schwettmann

This comment was marked as resolved.

@daeh
Copy link

daeh commented Feb 7, 2023

@karrtikr a bunch of my lab mates use a similar shell env, so I let people know that this issue was under consideration on our slack channel. Those are the upvotes, (the spam comment was obviously unrelated).

@karrtikr
Copy link

karrtikr commented Feb 7, 2023

Thanks for clarifying, we'll consider this.

@schwettmann
Copy link

thanks @karrtikr, would be helpful for lots of us.

@daeh
Copy link

daeh commented Feb 7, 2023

thanks, fwiw, I might rephrase the feature request title. For me, it's about having a way to specify the interpreter for a project that overrides the defaults (e.g. the conda env activated in ~/.zshrc and the User python.defaultInterpreterPath).

I think it's fine to select the activated environment as the interpreter by default when no interpreter is specified by a user.
But when a user manually specifies an interpreter with Python: Select Interpreter, the project/workspace should remember that specification and override the defaults when the project is reopened.

So I might rename the FR "Remember user specification of interpreter for a project".

Appreciate the help, @karrtikr

@brettcannon
Copy link
Member

brettcannon commented Feb 7, 2023

I might rephrase the feature request title.

Please feel free to! This is still your feature request, so please change the title and opening comment to better reflect what you're asking.

So I might rename the FR "Remember user specification of interpreter for a project".

I would append "regardless of environment" since we have, up to this point, always done that. The tricky bit for us is gleaming intent. If you launched VS Code from a terminal with an activated environment, were you showing intent that you wanted VS Code to use that environment (since you put in the effort to activate it), or did you have an "accidental" activation and that wasn't really meant for VS Code to care about when a previous action within VS Code showed your intent of preferred environment? We obviously went with the former at launch, but I'm interpreting your feature request as wanting the latter.

@daeh
Copy link

daeh commented Feb 7, 2023

(I'm actually not the OP, that's @zebra-f . @karrtikr changed the title to what it is currently. But @zebra-f , if you're up for it, maybe you can change the title to "Remember user specification of interpreter for a project regardless of environment"?)

The tricky bit for us is gleaming intent. If you launched VS Code from a terminal with an activated environment, were you showing intent that you wanted VS Code to use that environment (since you put in the effort to activate it), or did you have an "accidental" activation and that wasn't really meant for VS Code to care about when a previous action within VS Code showed your intent of preferred environment?

Yeah, I 100% got that. (Again, FWIW in my case I'm just clicking on the VS code Icon in the dock, or opening a workspace from the File menu, not launching vscode from a system terminal window.)
But yes, what I want is some way to specify a workspace/project interpreter that takes precedence over the system's active conda env.

@brettcannon brettcannon changed the title Do not automatically select activated environment in terminal when VSCode starts up Use the previously specified interpreter for a project regardless of environment Feb 7, 2023
@brettcannon
Copy link
Member

I'm actually not the OP

Sorry about that! I have gone ahead and changed the title.

I want is some way to specify a workspace/project interpreter that takes precedence over the system's active conda env.

Is this specifically upfront, or are you okay if we pick up your conda environment the first time from your environment, time you change it to something else, and we remember what you selected going forward and let that override what the environment is set to? Because if you're trying to pull in python.defaultInterpreterPath into this it's another level of hard as that's yet another point of intent that's even more passive than what's activated in your shell.

@daeh
Copy link

daeh commented Feb 7, 2023

the easy thing. I just want it remembered going forward when I change it.

@brettcannon
Copy link
Member

We have a PR by @karrtikr linked to this issue where we don't do the environment detection when you don't launch from a terminal (i.e. a double-click of an icon, launching from the Dock in macOS, etc.). Would that fix your issue?

@daeh
Copy link

daeh commented Feb 8, 2023

yep!

@karrtikr karrtikr added this to the February 2023 milestone Feb 9, 2023
@karrtikr karrtikr added the verification-needed Verification of issue is requested label Feb 9, 2023
@karrtikr karrtikr self-assigned this Feb 9, 2023
@karrtikr
Copy link

karrtikr commented Feb 9, 2023

Fix should be out in the pre-release version of the extension, use the following to try it out:

image

@daeh
Copy link

daeh commented Feb 9, 2023

prerelease works great for me. Thank you @karrtikr !

@karrtikr karrtikr added verified Verification succeeded and removed verification-needed Verification of issue is requested labels Feb 9, 2023
@ydmykr
Copy link

ydmykr commented Mar 8, 2023

So I have a question. If I want a project to use a specified python interpreter, how do I set up or start the project? I don't seem to find a solution in this article.

@brettcannon
Copy link
Member

@ydmykr you can use "python.defaultInterpreterPath". If you have more questions, please ask in https://github.com/microsoft/vscode-python/discussions .

@ydmykr
Copy link

ydmykr commented Mar 9, 2023

@brettcannon However, according to the document about vscode-python, python.defaultInterpreterPath can only be used in USER settings. Is there any way to set it in the settings.json in .vscode folder?

I want to be able to set the specified workspace instead of global. I can open a new issue if necessary, thanks alot.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 9, 2023
wesm pushed a commit to posit-dev/positron that referenced this issue Mar 28, 2024
--------------------
Commit message for microsoft/vscode-python@fc72be9:

Show `Python: Report issue` command in palette regardless of whether a Python file is opened (microsoft/vscode-python#20726)

Closes microsoft/vscode-python#20723
--------------------
Commit message for microsoft/vscode-python@c18e8c9:

Detect ActiveState Python runtimes (microsoft/vscode-python#20534)

Closes microsoft/vscode-python#20532
--------------------
Commit message for microsoft/vscode-python@2152cd9:

Don't set `formatOnType` for auto-indent experiment if it's already set (microsoft/vscode-python#20710)


--------------------
Commit message for microsoft/vscode-python@995b0bc:

Add support for 'back' to all create env UI. (microsoft/vscode-python#20693)

Closes microsoft/vscode-python#20274


### Usage

This change allows callers of the Create Environment command to handle
`Back` and `Cancel`:
``` typescript
let result: CreateEnvironmentResult | undefined;
try {
    const result = await commands.executeCommand("python.createEnvironment", {showBackButton: true});
} catch(e) {
   // error while creating environment
}

if (result?.action === 'Back') {
    // user clicked Back
}

if (result?.action === 'Cancel') {
    // user pressed escape or Cancel
}
```
I decided to go with `result?.action` because we don't have a npm
package for python extension API so catching particular exception might
be error prone with `ex instanceof <error>`. We will provide a proper
interface via `api.environments` for create environment, and
contribution to create environment. Until that point this command will
provide the stop gap.

### Notes

1. I did not use the multi-step input that is used in the rest of the
extension because, the existing implementation does not have context.
Consider the following scenario: venv -> workspace select -> python
select -> packages. Assume that there is only one workspace, and we
don't show the workspace selection UI, that decision is done inside the
workspace step. So, if there is only 1 workspace it is a short circuit
to next step. User is on python selection and clicks `back`, workspace
selection short circuits to next step which is python selection. So,
from user perspective, back does not work. This can be fixed by sending
context that the reason control moved to previous step was because user
clicked on back.
2. This makes a change to old multi step API to rethrow the exception,
if user hits `back` and the current step has no steps to go back to.
--------------------
Commit message for microsoft/vscode-python@f3ecbf5:

Fix-conda-version-parsing (microsoft/vscode-python#20674)


--------------------
Commit message for microsoft/vscode-python@a6a6f50:

Inactive pytest run command (microsoft/vscode-python#20653)

Here the new flow is created but kept inactive for the pytest execution
--------------------
Commit message for microsoft/vscode-python@2202fbe:

Call the correct API to determine if a user is in treatment or control group (microsoft/vscode-python#20690)

Closes microsoft/vscode-python#20183
--------------------
Commit message for microsoft/vscode-python@b0ab10d:

Only use activated environment from terminal if VSCode was launched via CLI (microsoft/vscode-python#20667)

Closes microsoft/vscode-python#20644
--------------------
Commit message for microsoft/vscode-python@02a92fc:

Ensure interpreter path isn't truncated for workspace-relative paths when storing value (microsoft/vscode-python#20661)

For microsoft/vscode-python#20660

I'm not quite sure why this was done. It doesn't make sense to do this
only for display.
--------------------
Commit message for microsoft/vscode-python@377067f:

Use correct API to get interpreter path for language servers (microsoft/vscode-python#20656)

For microsoft/vscode-python#20644 closes
microsoft/vscode-python#20657
--------------------
Commit message for microsoft/vscode-python@cd6ca9d:

Remove `isort` extension dependency (microsoft/vscode-python#20577)

Closes microsoft/vscode-python#20586

Lead-authored-by: Kartik Raj <[email protected]>
Co-authored-by: Erik De Bonte <[email protected]>
Co-authored-by: Karthik Nadig <[email protected]>
Co-authored-by: mitchell <[email protected]>
Co-authored-by: Pete Farland <[email protected]>
Co-authored-by: Eleanor Boyd <[email protected]>
wesm pushed a commit to posit-dev/positron that referenced this issue Mar 28, 2024
--------------------
Commit message for microsoft/vscode-python@fc72be9:

Show `Python: Report issue` command in palette regardless of whether a Python file is opened (microsoft/vscode-python#20726)

Closes microsoft/vscode-python#20723
--------------------
Commit message for microsoft/vscode-python@c18e8c9:

Detect ActiveState Python runtimes (microsoft/vscode-python#20534)

Closes microsoft/vscode-python#20532
--------------------
Commit message for microsoft/vscode-python@2152cd9:

Don't set `formatOnType` for auto-indent experiment if it's already set (microsoft/vscode-python#20710)


--------------------
Commit message for microsoft/vscode-python@995b0bc:

Add support for 'back' to all create env UI. (microsoft/vscode-python#20693)

Closes microsoft/vscode-python#20274


### Usage

This change allows callers of the Create Environment command to handle
`Back` and `Cancel`:
``` typescript
let result: CreateEnvironmentResult | undefined;
try {
    const result = await commands.executeCommand("python.createEnvironment", {showBackButton: true});
} catch(e) {
   // error while creating environment
}

if (result?.action === 'Back') {
    // user clicked Back
}

if (result?.action === 'Cancel') {
    // user pressed escape or Cancel
}
```
I decided to go with `result?.action` because we don't have a npm
package for python extension API so catching particular exception might
be error prone with `ex instanceof <error>`. We will provide a proper
interface via `api.environments` for create environment, and
contribution to create environment. Until that point this command will
provide the stop gap.

### Notes

1. I did not use the multi-step input that is used in the rest of the
extension because, the existing implementation does not have context.
Consider the following scenario: venv -> workspace select -> python
select -> packages. Assume that there is only one workspace, and we
don't show the workspace selection UI, that decision is done inside the
workspace step. So, if there is only 1 workspace it is a short circuit
to next step. User is on python selection and clicks `back`, workspace
selection short circuits to next step which is python selection. So,
from user perspective, back does not work. This can be fixed by sending
context that the reason control moved to previous step was because user
clicked on back.
2. This makes a change to old multi step API to rethrow the exception,
if user hits `back` and the current step has no steps to go back to.
--------------------
Commit message for microsoft/vscode-python@f3ecbf5:

Fix-conda-version-parsing (microsoft/vscode-python#20674)


--------------------
Commit message for microsoft/vscode-python@a6a6f50:

Inactive pytest run command (microsoft/vscode-python#20653)

Here the new flow is created but kept inactive for the pytest execution
--------------------
Commit message for microsoft/vscode-python@2202fbe:

Call the correct API to determine if a user is in treatment or control group (microsoft/vscode-python#20690)

Closes microsoft/vscode-python#20183
--------------------
Commit message for microsoft/vscode-python@b0ab10d:

Only use activated environment from terminal if VSCode was launched via CLI (microsoft/vscode-python#20667)

Closes microsoft/vscode-python#20644
--------------------
Commit message for microsoft/vscode-python@02a92fc:

Ensure interpreter path isn't truncated for workspace-relative paths when storing value (microsoft/vscode-python#20661)

For microsoft/vscode-python#20660

I'm not quite sure why this was done. It doesn't make sense to do this
only for display.
--------------------
Commit message for microsoft/vscode-python@377067f:

Use correct API to get interpreter path for language servers (microsoft/vscode-python#20656)

For microsoft/vscode-python#20644 closes
microsoft/vscode-python#20657
--------------------
Commit message for microsoft/vscode-python@cd6ca9d:

Remove `isort` extension dependency (microsoft/vscode-python#20577)

Closes microsoft/vscode-python#20586

Lead-authored-by: Kartik Raj <[email protected]>
Co-authored-by: Erik De Bonte <[email protected]>
Co-authored-by: Karthik Nadig <[email protected]>
Co-authored-by: mitchell <[email protected]>
Co-authored-by: Pete Farland <[email protected]>
Co-authored-by: Eleanor Boyd <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-environments Features relating to handling interpreter environments feature-request Request for new features or functionality needs community feedback Awaiting community feedback verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants