Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError at helix/rev2/keymaps/default/keymap.c #5

Closed
yskoht opened this issue Jun 29, 2019 · 1 comment
Closed

IndexError at helix/rev2/keymaps/default/keymap.c #5

yskoht opened this issue Jun 29, 2019 · 1 comment

Comments

@yskoht
Copy link
Owner

yskoht commented Jun 29, 2019

$ keymapviz keyboards/helix/rev2/keymaps/default/keymap.c
Traceback (most recent call last):
  File "/Users/yskoht/.pyenv/versions/3.7.0/bin/keymapviz", line 11, in <module>
    load_entry_point('keymapviz==1.1.0', 'console_scripts', 'keymapviz')()
  File "/Users/yskoht/.pyenv/versions/3.7.0/lib/python3.7/site-packages/keymapviz/keymapviz.py", line 86, in main
    keymaps = getattr(kmvz, TYPES[arg.type_])()
  File "/Users/yskoht/.pyenv/versions/3.7.0/lib/python3.7/site-packages/keymapviz/__init__.py", line 91, in ascii_art
    self.__ascii_art = [aa.format(*self.__legends(_)) for _ in self.keymaps]
  File "/Users/yskoht/.pyenv/versions/3.7.0/lib/python3.7/site-packages/keymapviz/__init__.py", line 91, in <listcomp>
    self.__ascii_art = [aa.format(*self.__legends(_)) for _ in self.keymaps]
IndexError: tuple index out of range

Helix default keymap.c has ROW=5 version keymap and ROW=4 version keymap.
keymapviz assumes ROW = 5 version keymap for helix. So, ROW = 4 keymap raises above error.

@yskoht
Copy link
Owner Author

yskoht commented Jan 5, 2020

Fixed at f90f8da

@yskoht yskoht closed this as completed Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant