Describe the bug
When trying to load a .json file pulled from keyboard-layout-editor.com, I get the below error. This error also happens when I try to load any json from the examples folder you've provided.
Traceback (most recent call last):
File "/home/nf3985/.var/app/org.kicad.KiCad/data/kicad/8.0/3rdparty/plugins/com_github_adamws_kicad-kbplacer/kbplacer_plugin_action.py", line 90, in Run
placer.run(
File "/home/nf3985/.var/app/org.kicad.KiCad/data/kicad/8.0/3rdparty/plugins/com_github_adamws_kicad-kbplacer/key_placer.py", line 880, in run
self.place_switches(keyboard, key_matrix, key_info.position)
File "/home/nf3985/.var/app/org.kicad.KiCad/data/kicad/8.0/3rdparty/plugins/com_github_adamws_kicad-kbplacer/key_placer.py", line 588, in place_switches
offset = self._calculate_reference_coordinate(keyboard, key_matrix)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nf3985/.var/app/org.kicad.KiCad/data/kicad/8.0/3rdparty/plugins/com_github_adamws_kicad-kbplacer/key_placer.py", line 576, in _calculate_reference_coordinate
first_key, _ = next(key_iterator)
^^^^^^^^^^^^^^^^^^
File "/home/nf3985/.var/app/org.kicad.KiCad/data/kicad/8.0/3rdparty/plugins/com_github_adamws_kicad-kbplacer/key_placer.py", line 216, in __next__
return key, self.__get_footprint(key)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nf3985/.var/app/org.kicad.KiCad/data/kicad/8.0/3rdparty/plugins/com_github_adamws_kicad-kbplacer/key_placer.py", line 207, in __get_footprint
sw = self._key_matrix.switch_by_number(self._current_key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nf3985/.var/app/org.kicad.KiCad/data/kicad/8.0/3rdparty/plugins/com_github_adamws_kicad-kbplacer/key_placer.py", line 121, in switch_by_number
return self._switches_by_number[number]
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
KeyError: 1
Describe the bug When trying to load a .json file pulled from keyboard-layout-editor.com, I get the below error. This error also happens when I try to load any json from the examples folder you've provided.
KiCad version info