Skip to content

Bug: Filed to resolve env "\\\ "e:\\OneDrive - .... #833

@DvidXu

Description

@DvidXu

When the Python interpreter path contains spaces and hyphens (e.g., E:\OneDrive - ...), the debugger fails to resolve the environment with an 'os error 123' because the path is being incorrectly quoted. The output of the Python Environments is:

2025-10-12 00:47:05.546 [error] [pet] Failed to execute Python to resolve info "\"e:\OneDrive - mails.tsinghua.edu.cn\Programs_Code\PycharmProjects\Learning\.venv\Scripts\python.exe"": 文件名、目录名或卷标语法不正确。 (os error 123)
2025-10-12 00:47:05.546 [warning] [pet] Unknown Python Env "\"e:\OneDrive - mails.tsinghua.edu.cn\Programs_Code\PycharmProjects\Learning\.venv\Scripts\python.exe""
2025-10-12 00:47:05.546 [error] [pet] Failed to resolve env "\"e:\OneDrive - mails.tsinghua.edu.cn\Programs_Code\PycharmProjects\Learning\.venv\Scripts\python.exe""

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage-neededNeeds assignment to the proper sub-team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions