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

config_converterでlayoutのdefineがtype aliasの場合にパースに失敗する #65

Open
k-omotani opened this issue Sep 5, 2022 · 0 comments

Comments

@k-omotani
Copy link
Contributor

Keyball61のconfigをconvertしようとして発見
このパターンのようにdefineとしてaliasで定義されている場合、elif '#define ' + self.search_layout + '(' in string:のパターンに入らずにERROR: Failed to findになります。

#define LAYOUT_right_ball( \
...
    }

#define LAYOUT LAYOUT_right_ball

https://github.com/Yowkees/keyball/blob/main/qmk_firmware/keyboards/keyball/keyball61/keyball61.h

error log

$ ./BLE-Micro-Pro/AboutDefaultFirmware/keyboards/config_converter.py ./keyball/qmk_firmware/keyboards/keyball/keyball61

 ** Making config.json from ./keyball/qmk_firmware/keyboards/keyball/keyball61 **
0: LAYOUT_right_ball		keyball/keyball61/keyball61.h:26
1: LAYOUT_left_ball		keyball/keyball61/keyball61.h:46
2: LAYOUT_dual_ball		keyball/keyball61/keyball61.h:66
3: LAYOUT_no_ball		keyball/keyball61/keyball61.h:86
4: LAYOUT		keyball/keyball61/keyball61.h:108
5: LAYOUT_universal		keyball/keyball61/keyball61.h:109

Use layout: 4
ERROR: Failed to find LAYOUT
This keyboard is split keyboard
warning: MATRIX len and PINS len do not match in both row and col.
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