feat(ide): generate .zed/debug.json for probe-rs targets (#1076 Phase 3 m1) - #1199
Conversation
… 3 m1)
- New ide_debug module: conservative mcu -> probe-rs chip mapping
(RP2040, RP2350, nRF52840_xxAA, STM32F103C8; unknown => None),
merge-don't-clobber .zed/debug.json emitter ("fbuild: " label
ownership), and a companion "fbuild: Debug server (probe-rs)" task
(probe-rs dap-server --port 50101 --chip <CHIP>) added only when a
chip resolves.
- Unsupported targets get a first-class one-line note and no config;
OpenOCD/ESP32/AVR are explicitly out of milestone 1 per the plan.
- MCU resolution reuses the deploy path's board-config pattern.
Part of #1076 (Phase 3 milestone 1).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 19 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Phase 3 milestone 1 of the corrected #1076 plan:
fbuild idenow generates a Zed debugger attach configuration for probe-rs-supported targets.mcustrings):rp2040→RP2040,rp2350→RP2350,nrf52840→nRF52840_xxAA,stm32f103c8(t6)→STM32F103C8. Teensy 4.x (imxrt1062) deliberately unmapped pending probe-rs name verification; ESP32/AVR/OpenOCD targets are out of milestone 1 per the plan — they get a first-class one-line "debug config not supported" note and no config..zed/debug.json:"fbuild: Debug (probe-rs attach)"entry withadapter: probe-rs,request: attach,tcp_connection: {127.0.0.1, 50101},programpointing at the env's ELF. Merge-don't-clobber with the same"fbuild: "label-ownership convention as tasks.json. Zed's docs don't formally spectcp_connection's inner fields — the shape follows Zed's known TCP-adapter convention and is flagged as best-effort in code comments..zed/tasks.jsongains"fbuild: Debug server (probe-rs)"(probe-rs dap-server --port 50101 --chip <CHIP>) only when a chip resolves; probe-rs is the user's install (fbuild does not install it in milestone 1).Validation (local)
soldr cargo test -p fbuild-cli→ 241 passed (16 new); clippy-D warningsclean; fmt clean; fullbash testbefore merge.port_scantests reproduced as pre-existing parallel-test flakiness (passes in isolation and on rerun); not caused by this change.Part of #1076 (Phase 3 milestone 1).
🤖 Generated with Claude Code