Skip to content

SchematicRect with traces test fails - Port PCB rendering issue with custom symbols #1409

@Omar8345

Description

@Omar8345

Issue Description

The test SchematicRect with traces in schematic-rect-with-traces.test.tsx is failing with the error:

error: <port#69664 name=".pin1" /> has no parent pcb component, cannot render pcb_port (parent: <symbol#69665 />)

Root Cause

The test is trying to create chips with both custom symbol definitions and footprint properties. The ports defined inside the custom symbol don't have access to the PCB component created by the footprint, causing the PCB port rendering to fail.

Related Code Snippet

      <chip
        name="U1"
        symbol={
          <symbol>
            <schematicrect
              center={{ x: 0, y: 0 }}
              width={2}
              height={2}
              isFilled={false}
            />
            <port name="pin1" direction="right" schX={1} schY={0} />
          </symbol>
        }
      />

Expected Behavior

The test should be able to create chips with custom symbols that have footprints, and the ports should be able to render on both schematic and PCB sides.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions