Skip to content

Extension provides duplicate environment picker #1562

Closed as not planned
Closed as not planned

Description

Environment data

  • Python Environments extension version: 1.30.0
  • Python extension (ms-python.python) version: 2026.4.0
  • VS Code version (Help → About): VS Codium 1.116.02821
  • OS and version: NixOS 26.05 Yarara
  • Python version (& distribution if applicable, e.g. Anaconda): all
  • Environment manager in use (venv / conda / pyenv / poetry / pipenv / system / uv / other): uv, mise
  • Shell (bash / zsh / fish / pwsh / cmd / other): zsh
  • Remote / container scenario (none / WSL / SSH Remote / Dev Container / Codespaces): none
  • Workspace type (single folder / multi-root / mono-repo): single folder
  • Is this a regression? If yes, last known working extension version: unsure

Repro Steps

  1. Launch VS Code
  2. Open a Python file
  3. Observe that two environment pickers are present in the status bar
Image

Expected behavior

There is a single Python interpreter picker present.

Actual behavior

There are two.

Logs

2026-06-06 15:50:32.016 [info] Python-envs extension version: 1.30.0
2026-06-06 15:50:32.016 [info] 
=== Python Envs Configuration Levels ===
2026-06-06 15:50:32.016 [info] {
  "section": "Python Envs Configuration Levels",
  "defaultEnvManager": {
    "workspaceFolderValue": "undefined",
    "workspaceValue": "ms-python.python:venv",
    "globalValue": "undefined",
    "defaultValue": "ms-python.python:venv"
  },
  "defaultPackageManager": {
    "workspaceFolderValue": "undefined",
    "workspaceValue": "undefined",
    "globalValue": "undefined",
    "defaultValue": "ms-python.python:pip"
  }
}
2026-06-06 15:50:32.016 [info] [pet] Starting Python Locator /home/maddy/.vscode-oss/extensions/ms-python.python-2026.4.0-universal/python-env-tools/bin/pet server
2026-06-06 15:50:32.016 [info] Registering pyenv manager (environments will be discovered lazily)
2026-06-06 15:50:32.016 [info] Registering pipenv manager (environments will be discovered lazily)
2026-06-06 15:50:32.016 [info] Registering poetry manager (environments will be discovered lazily)
2026-06-06 15:50:32.016 [info] [pet] configure: Sending configuration update: {"workspaceDirectories":["/home/maddy/Source/COMP/1010/26t1/marking"],"environmentDirectories":["/home/maddy/Source/COMP/1010/26t1/marking/.venv","/home/maddy/Source/COMP/1010/26t1/marking/*/.venv"],"pipenvExecutable":"pipenv","poetryExecutable":"poetry","cacheDirectory":"/home/maddy/.config/VSCodium/User/globalStorage/ms-python.vscode-python-envs/pythonLocator"}
2026-06-06 15:50:32.016 [error] [pet] Process error: A system error occurred (spawn /home/maddy/.vscode-oss/extensions/ms-python.python-2026.4.0-universal/python-env-tools/bin/pet ENOENT)
2026-06-06 15:51:01.956 [warning] [pet] Configure request timed out (attempt 1/2), will retry on next request without killing process
2026-06-06 15:51:01.956 [error] [pet] Error refreshing Request 'configure' timed out after 30000ms
2026-06-06 15:51:01.957 [warning] [pet] Restarting Python Environment Tools (attempt 1/3, waiting 1000ms)
2026-06-06 15:51:01.957 [error] [venv] Background initialization failed: [M: Request 'configure' timed out after 30000ms
	at Timeout.<anonymous> (/home/maddy/.vscode-oss/extensions/ms-python.vscode-python-envs-1.30.0-universal/dist/extension.js:2:551628)
	at listOnTimeout (node:internal/timers:585:17)
	at process.processTimers (node:internal/timers:521:7)] {
  method: 'configure'
}
2026-06-06 15:51:02.960 [info] [pet] Starting Python Locator /home/maddy/.vscode-oss/extensions/ms-python.python-2026.4.0-universal/python-env-tools/bin/pet server
2026-06-06 15:51:02.961 [info] [pet] Python Environment Tools restarted successfully
2026-06-06 15:51:02.961 [info] [pet] configure: Sending configuration update: {"workspaceDirectories":["/home/maddy/Source/COMP/1010/26t1/marking"],"environmentDirectories":["/home/maddy/Source/COMP/1010/26t1/marking/.venv","/home/maddy/Source/COMP/1010/26t1/marking/*/.venv"],"pipenvExecutable":"pipenv","poetryExecutable":"poetry","cacheDirectory":"/home/maddy/.config/VSCodium/User/globalStorage/ms-python.vscode-python-envs/pythonLocator"}
2026-06-06 15:51:02.962 [error] [pet] Process error: A system error occurred (spawn /home/maddy/.vscode-oss/extensions/ms-python.python-2026.4.0-universal/python-env-tools/bin/pet ENOENT)
2026-06-06 15:51:32.961 [warning] [pet] Configure request timed out (attempt 1/2), will retry on next request without killing process
2026-06-06 15:51:32.962 [error] [pet] Error refreshing Request 'configure' timed out after 30000ms
2026-06-06 15:51:32.962 [info] Conda not found, turning off conda features. [M: Request 'configure' timed out after 30000ms
	at Timeout.<anonymous> (/home/maddy/.vscode-oss/extensions/ms-python.vscode-python-envs-1.30.0-universal/dist/extension.js:2:551628)
	at listOnTimeout (node:internal/timers:585:17)
	at process.processTimers (node:internal/timers:521:7)] {
  method: 'configure'
}
2026-06-06 15:51:32.963 [info] [interpreterSelection] Applying initial environment selection for 1 workspace folder(s)
2026-06-06 15:51:32.963 [warning] [pet] Restarting Python Environment Tools (attempt 2/3, waiting 2000ms)
2026-06-06 15:51:34.968 [info] [pet] Starting Python Locator /home/maddy/.vscode-oss/extensions/ms-python.python-2026.4.0-universal/python-env-tools/bin/pet server
2026-06-06 15:51:34.968 [info] [pet] Python Environment Tools restarted successfully
2026-06-06 15:51:34.969 [info] [pet] configure: Sending configuration update: {"workspaceDirectories":["/home/maddy/Source/COMP/1010/26t1/marking"],"environmentDirectories":["/home/maddy/Source/COMP/1010/26t1/marking/.venv","/home/maddy/Source/COMP/1010/26t1/marking/*/.venv"],"pipenvExecutable":"pipenv","poetryExecutable":"poetry","cacheDirectory":"/home/maddy/.config/VSCodium/User/globalStorage/ms-python.vscode-python-envs/pythonLocator"}
2026-06-06 15:51:34.969 [error] [pet] Process error: A system error occurred (spawn /home/maddy/.vscode-oss/extensions/ms-python.python-2026.4.0-universal/python-env-tools/bin/pet ENOENT)
2026-06-06 15:52:04.971 [warning] [pet] Configure request timed out (attempt 1/2), will retry on next request without killing process
2026-06-06 15:52:04.971 [error] [pet] Error refreshing Request 'configure' timed out after 30000ms
2026-06-06 15:52:04.972 [error] [venv] Background initialization failed: [M: Request 'configure' timed out after 30000ms
	at Timeout.<anonymous> (/home/maddy/.vscode-oss/extensions/ms-python.vscode-python-envs-1.30.0-universal/dist/extension.js:2:551628)
	at listOnTimeout (node:internal/timers:585:17)
	at process.processTimers (node:internal/timers:521:7)] {
  method: 'configure'
}
2026-06-06 15:52:04.974 [info] [interpreterSelection] marking: none (source: defaultEnvManager)
2026-06-06 15:52:04.974 [warning] [pet] Restarting Python Environment Tools (attempt 3/3, waiting 4000ms)
2026-06-06 15:52:08.979 [info] [pet] Starting Python Locator /home/maddy/.vscode-oss/extensions/ms-python.python-2026.4.0-universal/python-env-tools/bin/pet server
2026-06-06 15:52:08.979 [info] [pet] Python Environment Tools restarted successfully
2026-06-06 15:52:08.979 [info] [pet] configure: Sending configuration update: {"workspaceDirectories":["/home/maddy/Source/COMP/1010/26t1/marking"],"environmentDirectories":["/home/maddy/Source/COMP/1010/26t1/marking/.venv","/home/maddy/Source/COMP/1010/26t1/marking/*/.venv"],"pipenvExecutable":"pipenv","poetryExecutable":"poetry","cacheDirectory":"/home/maddy/.config/VSCodium/User/globalStorage/ms-python.vscode-python-envs/pythonLocator"}
2026-06-06 15:52:08.980 [error] [pet] Process error: A system error occurred (spawn /home/maddy/.vscode-oss/extensions/ms-python.python-2026.4.0-universal/python-env-tools/bin/pet ENOENT)
2026-06-06 15:52:31.949 [error] Setup appears hung during stage: envSelection
2026-06-06 15:52:38.986 [warning] [pet] Configure request timed out (attempt 1/2), will retry on next request without killing process
2026-06-06 15:52:38.986 [error] [pet] Error refreshing Request 'configure' timed out after 30000ms
2026-06-06 15:52:38.987 [warning] [pet] Server mode exhausted, falling back to JSON CLI for refresh
2026-06-06 15:52:38.991 [info] [pet] JSON CLI fallback refresh: /home/maddy/.vscode-oss/extensions/ms-python.python-2026.4.0-universal/python-env-tools/bin/pet find --json /home/maddy/Source/COMP/1010/26t1/marking --cache-directory /home/maddy/.config/VSCodium/User/globalStorage/ms-python.vscode-python-envs/pythonLocator --pipenv-executable pipenv --poetry-executable poetry --environment-directories /home/maddy/Source/COMP/1010/26t1/marking/.venv --environment-directories /home/maddy/Source/COMP/1010/26t1/marking/*/.venv
2026-06-06 15:52:38.991 [error] [pet] JSON CLI fallback refresh failed: A system error occurred (spawn /home/maddy/.vscode-oss/extensions/ms-python.python-2026.4.0-universal/python-env-tools/bin/pet ENOENT)
2026-06-06 15:52:38.992 [error] [interpreterSelection] Failed to set global environment: Error: spawn /home/maddy/.vscode-oss/extensions/ms-python.python-2026.4.0-universal/python-env-tools/bin/pet ENOENT
2026-06-06 15:52:38.997 [warning] [pet] Server mode exhausted, falling back to JSON CLI for refresh
2026-06-06 15:52:39.002 [info] [pet] JSON CLI fallback refresh: /home/maddy/.vscode-oss/extensions/ms-python.python-2026.4.0-universal/python-env-tools/bin/pet find --json /home/maddy/Source/COMP/1010/26t1/marking --cache-directory /home/maddy/.config/VSCodium/User/globalStorage/ms-python.vscode-python-envs/pythonLocator --pipenv-executable pipenv --poetry-executable poetry --environment-directories /home/maddy/Source/COMP/1010/26t1/marking/.venv --environment-directories /home/maddy/Source/COMP/1010/26t1/marking/*/.venv
2026-06-06 15:52:39.002 [error] [pet] JSON CLI fallback refresh failed: A system error occurred (spawn /home/maddy/.vscode-oss/extensions/ms-python.python-2026.4.0-universal/python-env-tools/bin/pet ENOENT)
2026-06-06 15:52:39.004 [info] Refreshing pyenv environments
2026-06-06 15:52:39.005 [warning] [pet] Server mode exhausted, falling back to JSON CLI for refresh
2026-06-06 15:52:39.009 [info] [pet] JSON CLI fallback refresh: /home/maddy/.vscode-oss/extensions/ms-python.python-2026.4.0-universal/python-env-tools/bin/pet find --json /home/maddy/Source/COMP/1010/26t1/marking --cache-directory /home/maddy/.config/VSCodium/User/globalStorage/ms-python.vscode-python-envs/pythonLocator --pipenv-executable pipenv --poetry-executable poetry --environment-directories /home/maddy/Source/COMP/1010/26t1/marking/.venv --environment-directories /home/maddy/Source/COMP/1010/26t1/marking/*/.venv
2026-06-06 15:52:39.009 [error] [pet] JSON CLI fallback refresh failed: A system error occurred (spawn /home/maddy/.vscode-oss/extensions/ms-python.python-2026.4.0-universal/python-env-tools/bin/pet ENOENT)
2026-06-06 15:52:39.010 [error] Pyenv lazy initialization failed [Error: spawn /home/maddy/.vscode-oss/extensions/ms-python.python-2026.4.0-universal/python-env-tools/bin/pet ENOENT
	at ChildProcess._handle.onexit (node:internal/child_process:285:19)
	at onErrorNT (node:internal/child_process:483:16)
	at process.processTicksAndRejections (node:internal/process/task_queues:89:21)] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn /home/maddy/.vscode-oss/extensions/ms-python.python-2026.4.0-universal/python-env-tools/bin/pet',
  path: '/home/maddy/.vscode-oss/extensions/ms-python.python-2026.4.0-universal/python-env-tools/bin/pet',
  spawnargs: [
    'find',
    '--json',
    '/home/maddy/Source/COMP/1010/26t1/marking',
    '--cache-directory',
    '/home/maddy/.config/VSCodium/User/globalStorage/ms-python.vscode-python-envs/pythonLocator',
    '--pipenv-executable',
    'pipenv',
    '--poetry-executable',
    'poetry',
    '--environment-directories',
    '/home/maddy/Source/COMP/1010/26t1/marking/.venv',
    '--environment-directories',
    '/home/maddy/Source/COMP/1010/26t1/marking/*/.venv'
  ]
}
2026-06-06 15:52:39.012 [info] Pipenv not found via settings, cache, or PATH
2026-06-06 15:52:39.013 [info] Refreshing pipenv environments
2026-06-06 15:52:39.013 [warning] [pet] Server mode exhausted, falling back to JSON CLI for refresh
2026-06-06 15:52:39.017 [info] [pet] JSON CLI fallback refresh: /home/maddy/.vscode-oss/extensions/ms-python.python-2026.4.0-universal/python-env-tools/bin/pet find --json /home/maddy/Source/COMP/1010/26t1/marking --cache-directory /home/maddy/.config/VSCodium/User/globalStorage/ms-python.vscode-python-envs/pythonLocator --pipenv-executable pipenv --poetry-executable poetry --environment-directories /home/maddy/Source/COMP/1010/26t1/marking/.venv --environment-directories /home/maddy/Source/COMP/1010/26t1/marking/*/.venv
2026-06-06 15:52:39.017 [error] [pet] JSON CLI fallback refresh failed: A system error occurred (spawn /home/maddy/.vscode-oss/extensions/ms-python.python-2026.4.0-universal/python-env-tools/bin/pet ENOENT)
2026-06-06 15:52:39.017 [error] Pipenv lazy initialization failed [Error: spawn /home/maddy/.vscode-oss/extensions/ms-python.python-2026.4.0-universal/python-env-tools/bin/pet ENOENT
	at ChildProcess._handle.onexit (node:internal/child_process:285:19)
	at onErrorNT (node:internal/child_process:483:16)
	at process.processTicksAndRejections (node:internal/process/task_queues:89:21)] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn /home/maddy/.vscode-oss/extensions/ms-python.python-2026.4.0-universal/python-env-tools/bin/pet',
  path: '/home/maddy/.vscode-oss/extensions/ms-python.python-2026.4.0-universal/python-env-tools/bin/pet',
  spawnargs: [
    'find',
    '--json',
    '/home/maddy/Source/COMP/1010/26t1/marking',
    '--cache-directory',
    '/home/maddy/.config/VSCodium/User/globalStorage/ms-python.vscode-python-envs/pythonLocator',
    '--pipenv-executable',
    'pipenv',
    '--poetry-executable',
    'poetry',
    '--environment-directories',
    '/home/maddy/Source/COMP/1010/26t1/marking/.venv',
    '--environment-directories',
    '/home/maddy/Source/COMP/1010/26t1/marking/*/.venv'
  ]
}
2026-06-06 15:52:39.020 [info] Refreshing poetry environments
2026-06-06 15:52:39.020 [warning] [pet] Server mode exhausted, falling back to JSON CLI for refresh
2026-06-06 15:52:39.024 [info] [pet] JSON CLI fallback refresh: /home/maddy/.vscode-oss/extensions/ms-python.python-2026.4.0-universal/python-env-tools/bin/pet find --json /home/maddy/Source/COMP/1010/26t1/marking --cache-directory /home/maddy/.config/VSCodium/User/globalStorage/ms-python.vscode-python-envs/pythonLocator --pipenv-executable pipenv --poetry-executable poetry --environment-directories /home/maddy/Source/COMP/1010/26t1/marking/.venv --environment-directories /home/maddy/Source/COMP/1010/26t1/marking/*/.venv
2026-06-06 15:52:39.024 [error] [pet] JSON CLI fallback refresh failed: A system error occurred (spawn /home/maddy/.vscode-oss/extensions/ms-python.python-2026.4.0-universal/python-env-tools/bin/pet ENOENT)
2026-06-06 15:52:39.025 [error] Poetry lazy initialization failed [Error: spawn /home/maddy/.vscode-oss/extensions/ms-python.python-2026.4.0-universal/python-env-tools/bin/pet ENOENT
	at ChildProcess._handle.onexit (node:internal/child_process:285:19)
	at onErrorNT (node:internal/child_process:483:16)
	at process.processTicksAndRejections (node:internal/process/task_queues:89:21)] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn /home/maddy/.vscode-oss/extensions/ms-python.python-2026.4.0-universal/python-env-tools/bin/pet',
  path: '/home/maddy/.vscode-oss/extensions/ms-python.python-2026.4.0-universal/python-env-tools/bin/pet',
  spawnargs: [
    'find',
    '--json',
    '/home/maddy/Source/COMP/1010/26t1/marking',
    '--cache-directory',
    '/home/maddy/.config/VSCodium/User/globalStorage/ms-python.vscode-python-envs/pythonLocator',
    '--pipenv-executable',
    'pipenv',
    '--poetry-executable',
    'poetry',
    '--environment-directories',
    '/home/maddy/Source/COMP/1010/26t1/marking/.venv',
    '--environment-directories',
    '/home/maddy/Source/COMP/1010/26t1/marking/*/.venv'
  ]
}
2026-06-06 15:52:39.025 [warning] No Python environments were found. Try running "Python Environments: Run Python Environment Tool (PET) in Terminal..." from the Command Palette to diagnose. If environments should be detected, please report this: https://github.com/microsoft/vscode-python-environments/issues/new

Additional context

The extension also fails to detect all of the many Python environments on my computer. When I enter the path to an interpreter, eg in a virtual environment, the extension claims it is invalid, despite it working perfectly in the command-line.

Activity

  1. eleanorjboyd commented on Jun 9, 2026

    @eleanorjboyd
    Contributor

    Hi! Sorry but we only support official VS Code builds for support here so I'm going to close this as out of scope. If you switch to an official VS Code build and still see two pickers, please reopen and I'll dig in.

  2. locked as resolved and limited conversation to collaborators on Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions