Skip to content

Run Python File fails for scripts inside directories beginning with [WIP] in Codespaces #26331

Backlog

Description

@uukelele

Bug Description

Using Run Python File in a GitHub Codespace fails when the script is inside a directory whose name begins with [WIP].

At commit bf2fba5dcb4277367dd753fd90346c0784d477be, opening [WIP] GCSE_StuffWhichIMayOrMayNotUse/Present_Tense_Testing.py and clicking the play button produces:

python: can't open file '/workspaces/ProjectsIWouldLikeToShare/[WIP] GCSE_StuffWhichIMayOrMayNotUse/Present_Tense_Testing.py': [Errno 2] No such file or directory

Steps to Reproduce

  1. Open BulseyeTorch-jpg/ProjectsIWouldLikeToShare in GitHub Codespaces at commit bf2fba5dcb4277367dd753fd90346c0784d477be.
  2. Open [WIP] GCSE_StuffWhichIMayOrMayNotUse/Present_Tense_Testing.py.
  3. Click Run Python File in the upper-right corner.

Expected Behavior

The selected Python interpreter should receive the literal script path:

/workspaces/ProjectsIWouldLikeToShare/[WIP] GCSE_StuffWhichIMayOrMayNotUse/Present_Tense_Testing.py

and run the script.

Actual Behavior

The interpreter exits with:

[Errno 2] No such file or directory

The directory name was subsequently renamed in commit 35c3016a498fb01cb321cb8a5bf5196e6567641d to remove the brackets and the play button then worked.

Environment

  • VS Code version: 1.149.0
  • Commit: fd90a6deb021003d28f232fd2199a70348aa3d28
  • Embedder: GitHub Codespaces
  • Operating system: Linux
  • Python extension version: 2026.10.0
  • Python displayed in the status bar: 3.14.2
  • Terminal shell: Bash
  • Browser: Microsoft Edge 158 on Windows
  • User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/158.0.0.0 Safari/537.36 Edg/158.0.0.0

Additional Information

The screenshot shows the terminal invocation and file-not-found error. The path includes both brackets and a space, but the brackets should be treated literally. Renaming only the directory to remove [WIP] resolved the issue.

image

(not my repo btw, pls excuse the code quality 💀)

Activity

  1. added
    triage-needed
    on Dec 4, 2026
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-needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions