Skip to content

fix: skip wire routing for net-label-only nets (issue #79)#175

Open
LuSrodri wants to merge 1 commit intotscircuit:mainfrom
LuSrodri:fix/extra-net-label-issue-79
Open

fix: skip wire routing for net-label-only nets (issue #79)#175
LuSrodri wants to merge 1 commit intotscircuit:mainfrom
LuSrodri:fix/extra-net-label-issue-79

Conversation

@LuSrodri
Copy link
Copy Markdown

Summary

Nets connected exclusively via netConnections with a configured availableNetLabelOrientation (e.g. VCC, GND) are represented by net labels only and should not generate routed wire traces. Before this fix, MspConnectionPairSolver queued ALL nets including label-only ones, producing spurious extra trace lines on top of the net labels (as reported in #79).

Changes

  • MspConnectionPairSolver: filter queuedDcNetIds to skip nets that have no directly-wired pins AND have a configured label orientation — NetLabelPlacementSolver will handle those with labels instead of wires.
  • LongDistancePairSolver: apply the same skip logic inside the nearest-neighbour candidate loop so long-distance routing also respects label-only nets.
  • Tests: add regression test MspConnectionPairSolver_issue79.test.ts with two assertions — the solver doesn't queue VCC/GND, and the full pipeline produces no traces for those nets. Update MspConnectionPairSolver_repro1 expectation (4→2 pairs, reflecting correct label-only exclusion) and regenerate SVG snapshots for 9 affected examples.

Test results

51 pass  5 skip  0 fail   (same pass count as baseline, zero regressions)

/claim #79

Nets connected exclusively via netConnections with an
availableNetLabelOrientation (e.g. VCC, GND) are represented
by net labels only and should not generate routed wire traces.

- MspConnectionPairSolver: filter queuedDcNetIds to exclude
  label-only nets (no direct-wired pins + has label orientation)
- LongDistancePairSolver: apply the same skip logic in the
  nearest-neighbour candidate loop
- Update MspConnectionPairSolver_repro1 expectation (4→2 pairs)
  and regenerate SVG snapshots for affected examples

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
schematic-trace-solver Ready Ready Preview, Comment Apr 11, 2026 4:24pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant