I noticed the ReplicateLayout plugin v1.2.4 wasn't working on a fresh install of KiCad 6.09-1.fc36 (Fedora 36), installed via KiCad Plugin and Content Manager. Using Python 3.10.8.
Clicking "Ok" on the ReplicateLayout dialog after selecting the anchor footprint did not give any response or do the desired replication. The following error was produced, visible when running KiCad in terminal:
Traceback (most recent call last): File "/home/XXXX/.local/share/kicad/6.0/3rdparty/plugins/com_github_MitjaNemec_ReplicateLayout/action_replicate_layout.py", line 165, in on_ok settings = Settings(rep_tracks=self.chkbox_tracks.GetValue(), rep_zones=self.chkbox_zones.GetValue(), TypeError: Settings.__new__() got an unexpected keyword argument 'containing'
I see there was some refactoring happening with Settings in 85d4320858d1b5c87bf888f8dc08ad3593896d0b and it looks like ReplicateLayoutDialog.on_ok() and Replicator.replicate_layout() reference the old Settings.
This PR updates those functions to reflect the new Settings and fixes the error on my machine.
I noticed the ReplicateLayout plugin v1.2.4 wasn't working on a fresh install of KiCad 6.09-1.fc36 (Fedora 36), installed via KiCad Plugin and Content Manager. Using Python 3.10.8.
Clicking "Ok" on the ReplicateLayout dialog after selecting the anchor footprint did not give any response or do the desired replication. The following error was produced, visible when running KiCad in terminal:
Traceback (most recent call last): File "/home/XXXX/.local/share/kicad/6.0/3rdparty/plugins/com_github_MitjaNemec_ReplicateLayout/action_replicate_layout.py", line 165, in on_ok settings = Settings(rep_tracks=self.chkbox_tracks.GetValue(), rep_zones=self.chkbox_zones.GetValue(), TypeError: Settings.__new__() got an unexpected keyword argument 'containing'
I see there was some refactoring happening with Settings in 85d4320858d1b5c87bf888f8dc08ad3593896d0b and it looks like ReplicateLayoutDialog.on_ok() and Replicator.replicate_layout() reference the old Settings.
This PR updates those functions to reflect the new Settings and fixes the error on my machine.