-
Notifications
You must be signed in to change notification settings - Fork 72
Description
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""
