Skip to content

Fix net labels not being inserted for missing traces. fix repro119#2336

Open
Sang-it wants to merge 2 commits into
mainfrom
repro119
Open

Fix net labels not being inserted for missing traces. fix repro119#2336
Sang-it wants to merge 2 commits into
mainfrom
repro119

Conversation

@Sang-it
Copy link
Copy Markdown
Contributor

@Sang-it Sang-it commented May 26, 2026

No description provided.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 26, 2026

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

Project Deployment Actions Updated (UTC)
tscircuit-core-benchmarks Ready Ready Preview, Comment May 26, 2026 7:36pm

Request Review

@Sang-it Sang-it changed the title test svgs fix repro119 May 26, 2026
@Sang-it Sang-it marked this pull request as ready for review May 26, 2026 19:36

// If solver placed a same-net label near this port (possibly with wrong
// anchor due to trace routing), fix it in place rather than duplicating
const sameNetLabelNearPort = db.schematic_net_label.list().find((nl) => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this fix be in the solver?

@seveibar seveibar changed the title fix repro119 Fix net labels not being inserted for missing traces. fix repro119 May 26, 2026
const { name: text } = getNetNameFromPorts(portsOnSameNet)
const side =
getEnteringEdgeFromDirection(
(schPort.facing_direction as any) || "right",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
(schPort.facing_direction as any) || "right",
schPort.facing_direction || "right",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you need to cast schPort, i think it should be done somewhere else


db.schematic_net_label.insert({
text,
source_net_id: connKey,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a connKey is not a source_net_id, this is a bug

Copy link
Copy Markdown
Contributor

@seveibar seveibar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

connKey is not a source_net_id, otherwise generally ok

@seveibar
Copy link
Copy Markdown
Contributor

also see my revised PR title, if you don't write a good PR title the changelog will not have your changes, also your impact score is automatically penalized in our contribution tracker, so it's better to write a good PR title- it is the only text that matters for impact scores

@Sang-it
Copy link
Copy Markdown
Contributor Author

Sang-it commented May 26, 2026

Screenshot 2026-05-26 at 12 44 20 PM

It does look like its more of a sch trace solver issue.

@seveibar
Copy link
Copy Markdown
Contributor

yea there shouldn't be much or any algorithm stuff in core- it's better suited for dedicated repos

@github-actions
Copy link
Copy Markdown

This PR has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs.

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.

3 participants