Skip to content

Debugging Go subtests is broken #43847

@kyegupov

Description

@kyegupov

Reproduction steps

  1. Have a Go test with subtests (via 't.Run')
  2. Run a subtest via Zed, ensure it works.
  3. Try running the same subtest in debugging mode.
  4. get testing: warning: no tests to run message.

Current vs. Expected behavior

Current behavior: no tests are run in the debugger.
Expected behavior: the specific test is run.

Zed version and system specs

Zed: v0.215.3-86+74f281da864725a4e21360852e2d6a62bc4b4941 (Zed Preview)
OS: Linux X11 ubuntu 24.04
Memory: 31.2 GiB
Architecture: x86_64
GPU: Intel(R) Graphics (RPL-U) || Intel open-source Mesa driver || Mesa 25.0.7-0ubuntu0.24.04.2

Attach Zed log file

The reason for the bug is known: the unescape code in

if let Some((left, right)) = arg.split_once("/")
is out of sync with the escape code in
"'^{}$/^{}$'",

Relevant Zed settings

No response

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:debuggerfrequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usagepriority:P2Average run-of-the-mill bugs

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions