vial-kb / vial-gui

Vial is an open-source cross-platform (Windows, Linux and Mac) GUI and a QMK fork for configuring your keyboard in real time.
https://get.vial.today
GNU General Public License v2.0
903 stars 172 forks source link

`error: argument out of range` when loading layout #264

Open vdawg-git opened 1 week ago

vdawg-git commented 1 week ago

Whenever I try to load a layout for my Piantor Pro I get this error:

  File "main_window.py", line 245, in on_layout_load
  File "editor/keymap_editor.py", line 144, in restore_layout
  File "protocol/keyboard_comm.py", line 416, in restore_layout
  File "protocol/keyboard_comm.py", line 318, in set_key

error: argument out of range

I tried to load those two layouts (one of them is not for the Piantor though): piantor36_miryoku.vil.json

cantor-miryoku-mac.vil.json

They were both .vil originally but Github wants the .json file extension.

vdawg-git commented 1 week ago

Seems to an issue with the files I tried to load. Not sure what the problem was.

I leave it open as a nicer error message would be nice :D