Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

v6 Inconsistency between schematic and board gives error #145

@CantBelieveThisWorks

Description

@CantBelieveThisWorks

Hello,
while playing with replicate layout on v6 I encountered an error when a footprint exists on the board, but not on the schematic.
I tend to add logos only on the PCB but not on the schematic. When replicate layout is run, the following error is encountered (note line numbers could be wrong, as I added some extra debug messages):

01-12 21:54:30 replicate_layout.action_replicate_layout 345:Fatal error when making an instance of replicator
Traceback (most recent call last):
File "C:\Users\Robert\AppData\Roaming\kicad\6.0\scripting\replicate_layout\action_replicate_layout.py", line 342, in Run
replicator = replicatelayout.Replicator(board)
File "C:\Users\Robert\AppData\Roaming\kicad\6.0\scripting\replicate_layout\replicatelayout.py", line 150, in init
sheet_id = self.get_sheet_id_alt(fp)
File "C:\Users\Robert\AppData\Roaming\kicad\6.0\scripting\replicate_layout\replicatelayout.py", line 122, in get_sheet_id_alt
sheet_id = self.get_path(module).split("/")[-2]
IndexError: list index out of range

When the logo is removed, everything is working again.
Not sure if this is a bug or a feature, but figured I might raise this in any case.
Also, thanks for writing such a great plugin!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions