Skip to content

[Bug] Conda Environments not found (windows) #1034

@riedgar-ms

Description

@riedgar-ms

I'm trying to use Python Environments (presumably installed as part of the Python language support) in VS Code in Win11. However my Conda environments aren't found, and I have a non-functional 'Select Interpreter' button in the bottom right of the window.

Opening up the Output log, I see:

2025-12-08 12:04:46.597 [info] Experiment 'pythonSurveyNotificationcf' is active
2025-12-08 12:04:46.988 [info] Native locator: Refresh started
2025-12-08 12:04:47.091 [info] > pyenv which python
2025-12-08 12:04:47.091 [info] cwd: .
2025-12-08 12:04:52.211 [info] Native locator: Refresh finished in 5224 ms
2025-12-08 12:04:52.213 [error] [
  'Failed to activate a workspace, Class name = v, completed in 5226ms, has a falsy return value, Arg 1: <Uri:c:\\Users\\riedgar\\source\\repos\\PyRIT\\pyrit\\prompt_target\\openai\\openai_response_target.py>, Arg 2: {"started":1765213485818}, Return Value: undefined',
  [TypeError: Cannot read properties of undefined (reading 'map')
  	at c:\Users\riedgar\.vscode\extensions\ms-python.vscode-python-envs-1.12.0-win32-x64\dist\extension.js:2:548819
  	at z (c:\Users\riedgar\.vscode\extensions\ms-python.vscode-python-envs-1.12.0-win32-x64\dist\extension.js:2:548881)
  	at c:\Users\riedgar\.vscode\extensions\ms-python.vscode-python-envs-1.12.0-win32-x64\dist\extension.js:2:552528
  	at Array.map (<anonymous>)
  	at t.refreshCondaEnvs (c:\Users\riedgar\.vscode\extensions\ms-python.vscode-python-envs-1.12.0-win32-x64\dist\extension.js:2:552499)
  	at async c:\Users\riedgar\.vscode\extensions\ms-python.vscode-python-envs-1.12.0-win32-x64\dist\extension.js:2:524009]
]
2025-12-08 12:04:52.215 [error] Failure during activation. [TypeError: Cannot read properties of undefined (reading 'map')
	at c:\Users\riedgar\.vscode\extensions\ms-python.vscode-python-envs-1.12.0-win32-x64\dist\extension.js:2:548819
	at z (c:\Users\riedgar\.vscode\extensions\ms-python.vscode-python-envs-1.12.0-win32-x64\dist\extension.js:2:548881)
	at c:\Users\riedgar\.vscode\extensions\ms-python.vscode-python-envs-1.12.0-win32-x64\dist\extension.js:2:552528
	at Array.map (<anonymous>)
	at t.refreshCondaEnvs (c:\Users\riedgar\.vscode\extensions\ms-python.vscode-python-envs-1.12.0-win32-x64\dist\extension.js:2:552499)
	at async c:\Users\riedgar\.vscode\extensions\ms-python.vscode-python-envs-1.12.0-win32-x64\dist\extension.js:2:524009]
2025-12-08 12:04:52.215 [error] sendStartupTelemetry() failed. [TypeError: Cannot read properties of undefined (reading 'map')
	at c:\Users\riedgar\.vscode\extensions\ms-python.vscode-python-envs-1.12.0-win32-x64\dist\extension.js:2:548819
	at z (c:\Users\riedgar\.vscode\extensions\ms-python.vscode-python-envs-1.12.0-win32-x64\dist\extension.js:2:548881)
	at c:\Users\riedgar\.vscode\extensions\ms-python.vscode-python-envs-1.12.0-win32-x64\dist\extension.js:2:552528
	at Array.map (<anonymous>)
	at t.refreshCondaEnvs (c:\Users\riedgar\.vscode\extensions\ms-python.vscode-python-envs-1.12.0-win32-x64\dist\extension.js:2:552499)
	at async c:\Users\riedgar\.vscode\extensions\ms-python.vscode-python-envs-1.12.0-win32-x64\dist\extension.js:2:524009]

If I try using Python: Select Interpreter' from the bar at the top, and then manually navigate to AppData\Local\miniconda3\envs\ENV_NAME\python.exe` I just get

2025-12-08 12:08:41.159 [error] Python Extension: sendTelemetry [TypeError: Cannot read properties of undefined (reading 'map')
	at c:\Users\riedgar\.vscode\extensions\ms-python.vscode-python-envs-1.12.0-win32-x64\dist\extension.js:2:548819
	at z (c:\Users\riedgar\.vscode\extensions\ms-python.vscode-python-envs-1.12.0-win32-x64\dist\extension.js:2:548881)
	at c:\Users\riedgar\.vscode\extensions\ms-python.vscode-python-envs-1.12.0-win32-x64\dist\extension.js:2:552528
	at Array.map (<anonymous>)
	at t.refreshCondaEnvs (c:\Users\riedgar\.vscode\extensions\ms-python.vscode-python-envs-1.12.0-win32-x64\dist\extension.js:2:552499)
	at async c:\Users\riedgar\.vscode\extensions\ms-python.vscode-python-envs-1.12.0-win32-x64\dist\extension.js:2:521119]

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugneeds spike

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions