zed/crates/task
Pingy a5d1afa534
Fix unexpected argument ' ' upon trying to debug while cargo is indexing (#61241)
# Objective
Fixes #47119

## Solution

Strip empty-string arguments from the resolved build task in
debugger_ui::session:🏃:RunningState::resolve_scenario after
template substitution, before spawning the build command. This is the
correct place to do this as:
1.It's the first point in the pipeline where the empty strings exist as
concrete values rather than unsubstituted template variables.
2. It acts as a general safety net for any future locator that produces
a shell-command build step with placeholder args.
3. Other languages (Go, Node, Python) use build: None and pass
structured JSON directly to their DAP adapters, so they never hit this
code path.


## Testing

Performed visual and self testing by replicating the issue. 

## Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

---

Release Notes:

- Fixed unexpected argument '' upon trying to debug while cargo is
indexing

---------

Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
2026-07-28 11:51:44 +00:00
..
src Fix unexpected argument ' ' upon trying to debug while cargo is indexing (#61241) 2026-07-28 11:51:44 +00:00
test_data Fix VSCode tasks.json parsing for tasks without explicit labels (#47754) 2026-02-12 16:30:47 +00:00
Cargo.toml Remove workspace-hack (#40216) 2025-10-17 18:58:14 +00:00
LICENSE-GPL