Skip to content

Fix conda named environment creation after conda 25.11#1643

Open
jezdez wants to merge 1 commit into
microsoft:mainfrom
jezdez:fix/conda-env-prefix-discovery
Open

Fix conda named environment creation after conda 25.11#1643
jezdez wants to merge 1 commit into
microsoft:mainfrom
jezdez:fix/conda-env-prefix-discovery

Conversation

@jezdez

@jezdez jezdez commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

conda info --envs --json stopped including envs_dirs in conda 25.11. The extension persisted an empty prefix list and later searched it after conda had successfully created a named environment.

This change:

  • reads envs_dirs from full conda info --json instead of the filtered --envs response
  • treats empty cached prefix lists as stale and retries the query
  • runs named creation with --quiet --json and accepts both the current top-level prefix and legacy actions.PREFIX

References conda/conda#16430 and the named-environment failure in #1454.

@jezdez
jezdez force-pushed the fix/conda-env-prefix-discovery branch from dcedeaa to 2cf3ac7 Compare July 20, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant