zmk-viewer icon indicating copy to clipboard operation
zmk-viewer copied to clipboard

unexpected token "behaviors" (expected "keymap" "{" Keymap)

Open bebsworthy opened this issue 6 months ago • 0 comments

The parser seems to fail on behaviors definition.

./go/bin/zmk-viewer generate -f wip/sweep-config/config/splitkb_aurora_sweep.keymap cradio --unified
zmk-viewer master
2024-08-15T18:12:21+02:00 INF Fetching keyboard layout.
2024-08-15T18:12:21+02:00 INF Parsing keymap file.
2024-08-15T18:12:21+02:00 ERR error="/Users/xxxx/wip/sweep-config/config/splitkb_aurora_sweep.keymap:22:5: unexpected token \"behaviors\" (expected \"keymap\" \"{\" Keymap)"
2024-08-15T18:12:21+02:00 INF Image saved Path=cradio.png

My keymap is similar to this one but simplified to remove the home row macro: https://github.com/zmkfirmware/zmk/blob/main/app/boards/shields/cradio/cradio.keymap

splitkb_aurora_sweep.keymap.zip

bebsworthy avatar Aug 15 '24 16:08 bebsworthy