Skip to content

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

Closed

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

Activity

  1. CreMoProduction commented on Oct 12, 2025

    @CreMoProduction

    Same issue. Just found out after either OneDrive or VScode update. I move the project folder out of OneDrive folder and still the same. It goes with an issue when trying to run with venv, but when running global interpreter it is fine.
    Image


    SOLUTION: downgrade your Python debugger to version 2025.10.0

  2. eleanorjboyd commented on Oct 13, 2025

    @eleanorjboyd
    Contributor

    Hi! The pre-release version of the debugger should have a fix as well as 2025.14.1 which should be published within the next hour. Thanks

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

    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