microsoft / vscode-python

Python extension for Visual Studio Code
https://aka.ms/pvsc-marketplace
MIT License
4.3k stars 1.18k forks source link

VScode doesn't pick up correct python path from defaultInterpreterPath in settings.json #23493

Open m-morozov-kw opened 4 months ago

m-morozov-kw commented 4 months ago

Environment data

Code Snippet

My settings.json

{
    "editor.formatOnSave": true,
    "editor.rulers": [
        120
    ],
    "search.exclude": {
        ".mypy_cache": true
    },
    "files.exclude": {
        "**/.git": true,
        "**/.svn": true,
        "**/.hg": true,
        "**/CVS": true,
        "**/.DS_Store": true,
        "**/.pytest_cache": true,
        "**/__pycache__": true,
        "**/.mypy_cache": true,
        "**/Thumbs.db": true
    },
    "files.trimTrailingWhitespace": true,
    "files.insertFinalNewline": true,
    "files.trimFinalNewlines": true,
    "python.defaultInterpreterPath": "${env:WORKON_HOME}/${workspaceFolderBasename}/bin/python",
    "[python]": {
        "editor.formatOnSave": true,
        "editor.defaultFormatter": "charliermarsh.ruff"
      }
}
export WORKON_HOME=~/.virtualenvs

python -m venv $WORKON_HOME/comp-de
python -m venv $WORKON_HOME/project2

mkdir /Users/username/projects/company/comp-de
mkdir /Users/username/projects/company/project2
code /Users/username/projects/company/comp-de/.vscode/settings.json  # and put the above content of settings.json
code /Users/username/projects/company/project2/.vscode/settings.json  # and put the above content of settings.json

code /Users/username/projects/company/comp-de

Repro Steps

  1. And try to switch the project dir in vscode (from comp-de to project2) - via File -> Open Folder. In this case I opened /Users/username/projects/company/comp-de directory(that contains .vscode dir inside)

Expected behavior

Vscode shows the proper python interpreter(active venv) in bottom status bar from the respective directory - either comp-de or project2

Actual behavior

Vscode rememberers only the one python interpreter which I explicitly pick from the Command palette -> Select python interpreter. In logs you can find log with wrong python path - "2024-05-27 13:37:57.658 [info] Python interpreter path: ~/.virtualenvs/prefix-utilities-pip/bin/python". And correct one - "2024-05-27 13:37:56.565 [info] Default formatter is set to charliermarsh.ruff for workspace /Users/username/projects/company/comp-de".

Logs

2024-05-27 13:09:32.844 [info] Experiment 'pythonCreateEnvOnPipInstallcf' is active
2024-05-27 13:09:32.847 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-05-27 13:09:32.847 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-05-27 13:09:32.847 [info] Experiment 'pythonTestAdapter' is active
2024-05-27 13:09:33.153 [info] Default formatter is set to charliermarsh.ruff for workspace /Users/username/projects/company/prefix-utilities-pip
2024-05-27 13:09:33.239 [info] VS Code was launched from an activated environment: 'prefix-utilities-pip', selecting it as the interpreter for workspace.
2024-05-27 13:09:34.727 [info] Python interpreter path: ~/.virtualenvs/prefix-utilities-pip/bin/python
2024-05-27 13:09:35.812 [info] > pyenv which python
2024-05-27 13:09:35.813 [info] cwd: .
2024-05-27 13:09:37.305 [info] > conda info --json
2024-05-27 13:09:40.743 [info] > . ~/.virtualenvs/prefix-utilities-pip/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/printEnvVariables.py
2024-05-27 13:09:40.743 [info] shell: zsh
2024-05-27 13:09:42.884 [info] > ~/.pyenv/versions/3.10-dev/bin/python ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/printEnvVariables.py
2024-05-27 13:09:42.884 [info] shell: zsh
2024-05-27 13:09:43.245 [info] Prepending environment variable PATH in collection with /Users/username/.vscode/extensions/ms-python.python-2024.6.0/python_files/deactivate/zsh:/Users/username/.virtualenvs/prefix-utilities-pip/bin: {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-05-27 13:09:43.245 [info] Prepending environment variable PS1 in collection with (prefix-utilities-pip)  {"applyAtShellIntegration":true,"applyAtProcessCreation":false}
2024-05-27 13:09:43.246 [info] Send text to terminal: /Users/username/.pyenv/versions/3.10-dev/bin/python /Users/username/.vscode/extensions/ms-python.python-2024.6.0/python_files/printEnvVariablesToFile.py /Users/username/.vscode/extensions/ms-python.python-2024.6.0/python_files/deactivate/zsh/envVars.txt
2024-05-27 13:09:47.449 [info] Starting Pylance language server.
2024-05-27 13:11:52.853 [info] Experiment 'pythonCreateEnvOnPipInstallcf' is active
2024-05-27 13:11:52.853 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-05-27 13:11:52.853 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-05-27 13:11:52.853 [info] Experiment 'pythonTestAdapter' is active
2024-05-27 13:11:52.853 [info] Default formatter is set to ms-python.black-formatter for workspace /Users/username/projects/company/prefix-utilities-pip
2024-05-27 13:11:52.853 [info] VS Code was launched from an activated environment: 'prefix-utilities-pip', selecting it as the interpreter for workspace.
2024-05-27 13:11:52.945 [info] > hatch env show --json
2024-05-27 13:11:52.945 [info] cwd: .
2024-05-27 13:11:55.325 [info] Python interpreter path: ~/.virtualenvs/prefix-utilities-pip/bin/python
2024-05-27 13:11:58.189 [info] > pyenv which python
2024-05-27 13:11:58.189 [info] cwd: .
2024-05-27 13:11:59.737 [info] > conda info --json
2024-05-27 13:12:02.325 [info] > ~/.virtualenvs/prefix-utilities-pip/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:12:03.715 [info] > . ~/.virtualenvs/prefix-utilities-pip/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/printEnvVariables.py
2024-05-27 13:12:03.715 [info] shell: zsh
2024-05-27 13:12:04.185 [info] > ~/.pyenv/versions/3.10-dev/bin/python ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/printEnvVariables.py
2024-05-27 13:12:04.185 [info] shell: zsh
2024-05-27 13:12:04.544 [info] Prepending environment variable PATH in collection with /Users/username/.vscode/extensions/ms-python.python-2024.6.0/python_files/deactivate/zsh:/Users/username/.virtualenvs/prefix-utilities-pip/bin: {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-05-27 13:12:04.544 [info] Prepending environment variable PS1 in collection with (prefix-utilities-pip)  {"applyAtShellIntegration":true,"applyAtProcessCreation":false}
2024-05-27 13:12:04.585 [info] Send text to terminal: /Users/username/.pyenv/versions/3.10-dev/bin/python /Users/username/.vscode/extensions/ms-python.python-2024.6.0/python_files/printEnvVariablesToFile.py /Users/username/.vscode/extensions/ms-python.python-2024.6.0/python_files/deactivate/zsh/envVars.txt
2024-05-27 13:12:07.644 [info] Starting Pylance language server.
2024-05-27 13:12:57.091 [info] Discover tests for workspace name: undefined - uri: /Users/username/Library/Application Support/Code/User/profiles/-1a15cce7/settings.json
2024-05-27 13:35:34.403 [info] Discover tests for workspace name: undefined - uri: /Users/username/Library/Application Support/Code/User/profiles/-1a15cce7/settings.json
2024-05-27 13:35:43.299 [info] Discover tests for workspace name: prefix-utilities-pip - uri: /Users/username/projects/company/prefix-utilities-pip_utilities/off_market_process/off_market_service.py
2024-05-27 13:35:52.174 [info] Experiment 'pythonCreateEnvOnPipInstallcf' is active
2024-05-27 13:35:52.175 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-05-27 13:35:52.175 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-05-27 13:35:52.175 [info] Experiment 'pythonTestAdapter' is active
2024-05-27 13:35:52.202 [info] Default formatter is set to ms-python.black-formatter for workspace /Users/username/projects/company/prefix-mls-recon-beam
2024-05-27 13:35:52.239 [info] VS Code was launched from an activated environment: 'prefix-utilities-pip', selecting it as the interpreter for workspace.
2024-05-27 13:35:52.241 [info] Python interpreter path: ~/.virtualenvs/prefix-utilities-pip/bin/python
2024-05-27 13:35:52.549 [info] > pyenv which python
2024-05-27 13:35:52.549 [info] cwd: .
2024-05-27 13:35:57.087 [info] > . ~/.virtualenvs/prefix-mls-recon-beam/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/printEnvVariables.py
2024-05-27 13:35:57.090 [info] shell: zsh
2024-05-27 13:35:57.933 [info] > ~/.pyenv/versions/3.10-dev/bin/python ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/printEnvVariables.py
2024-05-27 13:35:57.933 [info] shell: zsh
2024-05-27 13:35:58.307 [info] Prepending environment variable PATH in collection with /Users/username/.vscode/extensions/ms-python.python-2024.6.0/python_files/deactivate/zsh:/Users/username/.virtualenvs/prefix-mls-recon-beam/bin: {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-05-27 13:35:58.307 [info] Setting environment variable VIRTUAL_ENV in collection to /Users/username/.virtualenvs/prefix-mls-recon-beam {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-05-27 13:35:58.307 [info] Prepending environment variable PS1 in collection with (prefix-mls-recon-beam)  {"applyAtShellIntegration":true,"applyAtProcessCreation":false}
2024-05-27 13:35:58.308 [info] Send text to terminal: /Users/username/.pyenv/versions/3.10-dev/bin/python /Users/username/.vscode/extensions/ms-python.python-2024.6.0/python_files/printEnvVariablesToFile.py /Users/username/.vscode/extensions/ms-python.python-2024.6.0/python_files/deactivate/zsh/envVars.txt
2024-05-27 13:36:02.652 [info] Starting Pylance language server.
2024-05-27 13:36:05.200 [info] > conda info --json
2024-05-27 13:36:05.251 [info] > hatch env show --json
2024-05-27 13:36:05.251 [info] cwd: .
2024-05-27 13:36:05.292 [info] Found: /usr/bin/python3 --> /usr/bin/python3
2024-05-27 13:36:05.330 [info] > ~/.virtualenvs/prefix-mls-recon-beam/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:05.365 [info] Found: /usr/local/bin/python3 --> /usr/local/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/bin/python3.12
2024-05-27 13:36:05.398 [info] Found: /usr/local/bin/python3.10 --> /usr/local/Cellar/python@3.10/3.10.13_2/Frameworks/Python.framework/Versions/3.10/bin/python3.10
2024-05-27 13:36:05.406 [info] Found: /usr/local/bin/python3.11 --> /usr/local/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/bin/python3.11
2024-05-27 13:36:05.420 [info] > ~/.pyenv/versions/3.10-dev/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:05.427 [info] Found: /usr/local/bin/python3.12 --> /usr/local/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/bin/python3.12
2024-05-27 13:36:05.453 [info] Found: /usr/local/bin/python3.9 --> /usr/local/Cellar/python@3.9/3.9.18_2/Frameworks/Python.framework/Versions/3.9/bin/python3.9
2024-05-27 13:36:05.491 [info] Found: /Users/username/.virtualenvs/prefix-utilities-pip/bin/python --> /Users/username/.pyenv/versions/3.11.3/bin/python3.11
2024-05-27 13:36:05.497 [info] Found: /Users/username/.virtualenvs/prefix-utilities-pip/bin/python3 --> /Users/username/.pyenv/versions/3.11.3/bin/python3.11
2024-05-27 13:36:05.502 [info] Found: /Users/username/.virtualenvs/prefix-utilities-pip/bin/python3.11 --> /Users/username/.pyenv/versions/3.11.3/bin/python3.11
2024-05-27 13:36:05.511 [info] Found: /Users/username/bin/python --> /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/Resources/Python.app/Contents/MacOS/Python
2024-05-27 13:36:05.514 [info] Found: /Users/username/bin/python3 --> /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/Resources/Python.app/Contents/MacOS/Python
2024-05-27 13:36:05.516 [info] Found: /Users/username/bin/python3.8 --> /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/Resources/Python.app/Contents/MacOS/Python
2024-05-27 13:36:05.531 [info] Found: /Users/username/projects/company/prefix5-cli-pip/venv/bin/python --> /Users/username/.pyenv/versions/3.10-dev/bin/python3.10
2024-05-27 13:36:05.536 [info] Found: /Users/username/projects/company/prefix5-cli-pip/venv/bin/python3 --> /Users/username/.pyenv/versions/3.10-dev/bin/python3.10
2024-05-27 13:36:05.546 [info] Found: /Users/username/projects/company/prefix5-cli-pip/venv/bin/python3.10 --> /Users/username/.pyenv/versions/3.10-dev/bin/python3.10
2024-05-27 13:36:05.636 [info] > ~/.pyenv/versions/3.11.3/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:05.750 [info] > ~/.pyenv/versions/3.11.7/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:05.874 [info] > ~/.pyenv/versions/3.8.11/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:06.333 [info] > ~/.pyenv/versions/3.8.12/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:06.345 [info] > ~/.pyenv/versions/3.9.13/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:06.904 [info] > ~/.virtualenvs/account_service/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:06.987 [info] > ~/.virtualenvs/aoe/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:07.179 [info] > ~/.virtualenvs/appia-data-generator/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:07.283 [info] > ~/.virtualenvs/asdasdsd_nick/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:07.479 [info] > ~/.virtualenvs/auth_service/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:07.510 [info] > ~/.virtualenvs/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:07.511 [error] Error: Command failed: /Users/username/.virtualenvs/auth_service/bin/python -I /Users/username/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py /Users/username/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
/bin/sh: /Users/username/.virtualenvs/auth_service/bin/python: No such file or directory

    at ChildProcess.exithandler (node:child_process:423:12)
    at ChildProcess.emit (node:events:529:35)
    at maybeClose (node:internal/child_process:1098:16)
    at Socket.<anonymous> (node:internal/child_process:450:11)
    at Socket.emit (node:events:517:28)
    at Pipe.<anonymous> (node:net:350:12) {
  code: 127,
  killed: false,
  signal: null,
  cmd: '/Users/username/.virtualenvs/auth_service/bin/python -I /Users/username/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py /Users/username/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py'
}
2024-05-27 13:36:07.795 [info] > ~/.virtualenvs/data-process-tools-stream-list/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:07.947 [info] > ~/.virtualenvs/dataflow-demo/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:08.006 [info] > ~/.virtualenvs/de-boundary-api/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:08.213 [info] > ~/.virtualenvs/de-expire-list-pipeline/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:08.216 [info] > ~/.virtualenvs/de-log-process-beam/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:08.435 [info] > ~/.virtualenvs/de-schema/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:08.524 [info] > ~/.virtualenvs/de-v4-utilities/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:08.768 [info] > ~/.virtualenvs/prefix-addressid-dcm-beam/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:08.955 [info] > ~/.virtualenvs/prefix-agent-insight-service-ms/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:09.004 [info] > ~/.virtualenvs/prefix-agent-office-download-beam/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:09.202 [info] > ~/.virtualenvs/prefix-agent-office-beam/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:09.257 [info] > ~/.virtualenvs/prefix-aoe-pip/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:09.531 [info] > ~/.virtualenvs/prefix-claim-list-beam/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:09.561 [info] > ~/.virtualenvs/prefix-dags-airflow/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:10.127 [info] > ~/.virtualenvs/prefix-db-write-beam/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:10.224 [info] > ~/.virtualenvs/prefix-enhancer-pip/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:10.381 [info] > ~/.virtualenvs/prefix-list-attribution-ms/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:10.708 [info] > ~/.virtualenvs/prefix-list-diff-pip/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:10.938 [info] > ~/.virtualenvs/prefix-list-diff-report-ms/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:11.127 [info] > ~/.virtualenvs/prefix-list-inject-ms/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:11.203 [info] > ~/.virtualenvs/prefix-list-mflow-pip/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:11.380 [info] > ~/.virtualenvs/prefix-list-ms/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:11.496 [info] > ~/.virtualenvs/prefix-media-download-beam/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:11.823 [info] > ~/.virtualenvs/prefix-media-pip/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:11.935 [info] > ~/.virtualenvs/prefix-admin-pip/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:12.126 [info] > ~/.virtualenvs/prefix-admin-pip-map-update/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:12.226 [info] > ~/.virtualenvs/prefix-mls-api-downloader-beam/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:12.323 [info] > ~/.virtualenvs/prefix-mls-downloader-pip/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:12.515 [info] > ~/.virtualenvs/prefix-mls-mapper-pip/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:12.612 [info] > ~/.virtualenvs/prefix-mls-metadata-beam/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:12.864 [info] > ~/.virtualenvs/prefix-mls-preprocessor-cfun/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:12.972 [info] > /usr/bin/python3 -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:13.172 [info] > ~/.virtualenvs/prefix-ms/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:13.406 [info] > ~/.virtualenvs/prefix-msfwkutils-pip/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:13.435 [info] > ~/.virtualenvs/prefix-open-house-beam/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:13.618 [info] > ~/.virtualenvs/prefix-open-house-process-beam/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:13.655 [info] > ~/.virtualenvs/prefix-openhouse-pip/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:13.850 [info] > ~/.virtualenvs/prefix-resync-beam/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:13.888 [info] > ~/.virtualenvs/prefix-releases/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:14.062 [info] > ~/.virtualenvs/prefix-tools/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:14.088 [info] > ~/.virtualenvs/prefix-ui/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:14.269 [info] > ~/.virtualenvs/prefix5-cli-pip/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:14.329 [info] > ~/.virtualenvs/prefix-snowflake-id/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:14.466 [info] > ~/.virtualenvs/prefix-soft-delete-pip/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:14.732 [info] > ~/.virtualenvs/prefix-transforms-pip/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:14.767 [info] > ~/.virtualenvs/prefix-utilities-pip/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:14.988 [info] > ~/.virtualenvs/prefix-utilities-pip_2/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:15.210 [info] > ~/.virtualenvs/io-enhancer-pip/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:15.306 [info] > ~/.virtualenvs/io-comp-logger-pip/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:15.546 [info] > ~/.virtualenvs/io-media-processing-beam/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:15.572 [info] > ~/.virtualenvs/io-mls-mapper-pip/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:15.800 [info] > ~/.virtualenvs/io-open-house-process-beam/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:16.067 [info] > ~/.virtualenvs/io-process-lists-beam/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:16.128 [info] > ~/.virtualenvs/io-rules-pip/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:16.321 [info] > ~/.virtualenvs/io-systemid-pip/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:16.461 [info] > ~/.virtualenvs/comp-data-keyvalue-history-pip/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:16.514 [info] > /usr/local/bin/python3 -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:16.860 [info] > ~/.virtualenvs/comp-data-dbapps/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:16.902 [info] > ~/.virtualenvs/comp-data-ssnotify-pip/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:17.332 [info] > ~/.virtualenvs/comp-data-stream-list/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:17.406 [info] > ~/.virtualenvs/comp-data-stream-list_2/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:17.661 [info] > ~/.virtualenvs/comp-de-binder/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:17.745 [info] > ~/.virtualenvs/comp-de-cookiecutter-pip/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:17.851 [info] > ~/.virtualenvs/comp-de/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:18.052 [info] > ~/.virtualenvs/comp-de-person-sisense/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:18.085 [info] > ~/.virtualenvs/comp-de-history/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:18.217 [info] > ~/.virtualenvs/comp-de-reprocess/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:18.229 [info] > ~/.virtualenvs/comp-de-reprocess_beam_37/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:18.484 [info] > ~/.virtualenvs/comp-de-teamification-beam/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:18.531 [info] > ~/.virtualenvs/comp-fastapi-jwt-auth-pip/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:18.704 [info] > ~/.virtualenvs/comp-python-sdk/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:18.835 [info] > ~/.virtualenvs/manual_reprocessing/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:19.177 [info] > ~/.virtualenvs/map_update/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:19.313 [info] > ~/.virtualenvs/nick_serv/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:19.356 [info] > ~/.virtualenvs/push_claim_lists/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:19.485 [info] > ~/.virtualenvs/repo-bricks/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:19.682 [info] > ~/.virtualenvs/task_service/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:19.870 [info] > ~/.virtualenvs/task_tracker_api/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:19.907 [info] > ~/.virtualenvs/test_nick_app/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:20.046 [info] > ~/.virtualenvs/test_venv/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:20.202 [info] > ~/.virtualenvs/testenv/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:20.298 [info] > ~/.virtualenvs/track-likes-syncer/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:20.467 [info] > ~/.virtualenvs/uber-popug-ates/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:20.500 [info] > ~/.virtualenvs/utilities-history/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:20.501 [error] Error: Command failed: /Users/username/.virtualenvs/uber-popug-ates/bin/python -I /Users/username/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py /Users/username/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
/bin/sh: /Users/username/.virtualenvs/uber-popug-ates/bin/python: No such file or directory

    at ChildProcess.exithandler (node:child_process:423:12)
    at ChildProcess.emit (node:events:529:35)
    at maybeClose (node:internal/child_process:1098:16)
    at Socket.<anonymous> (node:internal/child_process:450:11)
    at Socket.emit (node:events:517:28)
    at Pipe.<anonymous> (node:net:350:12) {
  code: 127,
  killed: false,
  signal: null,
  cmd: '/Users/username/.virtualenvs/uber-popug-ates/bin/python -I /Users/username/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py /Users/username/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py'
}
2024-05-27 13:36:20.540 [info] > ~/.virtualenvs/utils/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:20.713 [info] > ~/.virtualenvs/utils_2/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:20.791 [info] > /usr/local/bin/python3.10 -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:20.866 [info] > /usr/local/bin/python3.11 -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:21.269 [info] > /usr/local/bin/python3.9 -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:21.330 [info] > ~/.pyenv/versions/3.11.3/bin/python3.11 -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:21.505 [info] > ~/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:21.923 [info] > ~/.pyenv/versions/3.10-dev/bin/python3.10 -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:21.956 [info] > ~/.virtualenvs/auth_service/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:21.986 [error] Error: Command failed: /Users/username/.virtualenvs/auth_service/bin/python -I /Users/username/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py /Users/username/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
/bin/sh: /Users/username/.virtualenvs/auth_service/bin/python: No such file or directory

    at ChildProcess.exithandler (node:child_process:423:12)
    at ChildProcess.emit (node:events:529:35)
    at maybeClose (node:internal/child_process:1098:16)
    at Socket.<anonymous> (node:internal/child_process:450:11)
    at Socket.emit (node:events:517:28)
    at Pipe.<anonymous> (node:net:350:12) {
  code: 127,
  killed: false,
  signal: null,
  cmd: '/Users/username/.virtualenvs/auth_service/bin/python -I /Users/username/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py /Users/username/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py'
}
2024-05-27 13:36:22.504 [info] > ~/.virtualenvs/uber-popug-ates/bin/python -I ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
2024-05-27 13:36:22.529 [error] Error: Command failed: /Users/username/.virtualenvs/uber-popug-ates/bin/python -I /Users/username/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py /Users/username/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py
/bin/sh: /Users/username/.virtualenvs/uber-popug-ates/bin/python: No such file or directory

    at ChildProcess.exithandler (node:child_process:423:12)
    at ChildProcess.emit (node:events:529:35)
    at maybeClose (node:internal/child_process:1098:16)
    at Socket.<anonymous> (node:internal/child_process:450:11)
    at Socket.emit (node:events:517:28)
    at Pipe.<anonymous> (node:net:350:12) {
  code: 127,
  killed: false,
  signal: null,
  cmd: '/Users/username/.virtualenvs/uber-popug-ates/bin/python -I /Users/username/.vscode/extensions/ms-python.python-2024.6.0/python_files/get_output_via_markers.py /Users/username/.vscode/extensions/ms-python.python-2024.6.0/python_files/interpreterInfo.py'
}
2024-05-27 13:36:26.627 [info] Python interpreter path: ~/.virtualenvs/prefix-mls-recon-beam/bin/python
2024-05-27 13:37:56.565 [info] Experiment 'pythonCreateEnvOnPipInstallcf' is active
2024-05-27 13:37:56.565 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-05-27 13:37:56.565 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-05-27 13:37:56.565 [info] Experiment 'pythonTestAdapter' is active
2024-05-27 13:37:56.565 [info] Default formatter is set to charliermarsh.ruff for workspace /Users/username/projects/company/comp-de
2024-05-27 13:37:56.565 [info] VS Code was launched from an activated environment: 'prefix-utilities-pip', selecting it as the interpreter for workspace.
2024-05-27 13:37:57.658 [info] Python interpreter path: ~/.virtualenvs/prefix-utilities-pip/bin/python
2024-05-27 13:37:58.630 [info] > pyenv which python
2024-05-27 13:37:58.630 [info] cwd: .
2024-05-27 13:38:01.238 [info] > conda info --json
2024-05-27 13:38:01.529 [info] > . ~/.virtualenvs/prefix-utilities-pip/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/printEnvVariables.py
2024-05-27 13:38:01.529 [info] shell: zsh
2024-05-27 13:38:02.208 [info] > ~/.pyenv/versions/3.10-dev/bin/python ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/printEnvVariables.py
2024-05-27 13:38:02.208 [info] shell: zsh
2024-05-27 13:38:02.798 [info] Prepending environment variable PATH in collection with /Users/username/.vscode/extensions/ms-python.python-2024.6.0/python_files/deactivate/zsh:/Users/username/.virtualenvs/prefix-utilities-pip/bin: {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-05-27 13:38:02.798 [info] Prepending environment variable PS1 in collection with (prefix-utilities-pip)  {"applyAtShellIntegration":true,"applyAtProcessCreation":false}
2024-05-27 13:38:02.800 [info] Send text to terminal: /Users/username/.pyenv/versions/3.10-dev/bin/python /Users/username/.vscode/extensions/ms-python.python-2024.6.0/python_files/printEnvVariablesToFile.py /Users/username/.vscode/extensions/ms-python.python-2024.6.0/python_files/deactivate/zsh/envVars.txt
2024-05-27 13:38:06.378 [info] Starting Pylance language server.

Thank you

bschnurr commented 4 months ago

I believe the Python Extension is responsible for selecting the python interpreter, transferring issue

heejaechang commented 4 months ago

as @bschnurr said, python extension is responsible for python.defaultInterpreterPath but that said, even if it is passed to us, pylance won't be able to resolve those env vars.

pylance doesn't pick up any random env var for security reasons. we only support ${WorkspaceFolder}, ${WorkspaceFolder:name}, ${env:HOME}, ${env:USERNAME}, ${env:VIRTUAL_ENV}, ~/...

@luabud do we have this info documented somewhere?

luabud commented 4 months ago

I think the problem is all related to interpreter selection, so not related to Pylance. How the Python extension handles environment variable support is documented here: https://code.visualstudio.com/docs/python/environments#_environment-variables

@heejaechang When you say Pylance supports${WorkspaceFolder}, ${WorkspaceFolder:name},, etc, do you mean in the settings such as exclude and include?

heejaechang commented 4 months ago

@luabud we also support it for python.pythonpath. basically anywhere we accept path, we support those and only those env variables.

you can take a look at this file - https://github.com/microsoft/pyrx/blob/main/packages/pylance-internal/src/server/common.ts - and search for expandPathVariables and resolvePathWithEnvVariables to see what settings support those.