google/pcbdl

Show error when multiple parts with the same ref.des. in schematic

Closed this issue · 1 comments

Like this code must show error:

# USB Connection section
DM << (
	R("100k", "R58", to=VBUS, populated=False),
	R("200k", "R57", to=gnd, populated=False),
)

DP << (
	R("100k", "R58", to=VBUS, populated=False),
	R("200k", "R57", to=gnd, populated=False),
)

Yep, this needs a failing test.

Context.new_part should check that "part.name not in (part.name for part in self.parts_list)"