Skip to content

Activating extension 'ms-python.vscode-python-envs' failed: The "paths[1]" argument must be of type string. Received undefined. #951

@DesenbergChina

Description

@DesenbergChina

As shown in the question, I have been encountering this problem since several versions ago.

As long as I am using the Python extension plugin , at the same time, enable vscode python environments .The error will be as follows:

Extension activation failed, run the 'Developer: Toggle Developer Tools' command for more information.

The specific error information is displayed in Developer Tools as follows, and the complete error information is provided in the attachment.

log.docx

log.ts:440 INFO Started local extension host with pid 10308.
log.ts:440 INFO MCP Registry configured: https://api.mcp.github.com/2025-09-15
log.ts:440 INFO Settings Sync: Account status changed from uninitialized to available
mainThreadExtensionService.ts:107 Activating extension 'ms-python.vscode-python-envs' failed: The "paths[1]" argument must be of type string. Received undefined.
$onExtensionActivationError @ mainThreadExtensionService.ts:107
notificationsAlerts.ts:42 Extension activation failed, run the 'Developer: Toggle Developer Tools' command for more information.
c @ notificationsAlerts.ts:42
mainThreadExtensionService.ts:107 Activating extension 'ms-python.python' failed: Activating extension 'ms-python.vscode-python-envs' failed: The "paths[1]" argument must be of type string. Received undefined..
$onExtensionActivationError @ mainThreadExtensionService.ts:107
log.ts:440 INFO [perf] Render performance baseline is 15ms
log.ts:460 ERR [Extension Host] (node:10308) ExperimentalWarning: SQLite is an experimental feature and might change at any time
(Use Code --trace-warnings ... to show where the warning was created)
error @ log.ts:460
console.ts:137 [Extension Host] (node:10308) ExperimentalWarning: SQLite is an experimental feature and might change at any time
(Use Code --trace-warnings ... to show where the warning was created)
gbs @ console.ts:137
log.ts:460 ERR chatParticipant must be declared in package.json: claude-code
error @ log.ts:460
webviewElement.ts:489 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
mountTo @ webviewElement.ts:489
notificationsAlerts.ts:42 command 'python-envs.set' not found
c @ notificationsAlerts.ts:42
webviewElement.ts:489 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
mountTo @ webviewElement.ts:489
webviewElement.ts:489 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
mountTo @ webviewElement.ts:489

I don't know what's going on, even though I searched for a lot of information online, I couldn't solve it. Please give me some help, thank you very much!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions