Compile error
Closed this issue · 1 comments
sethherr commented
The functional_default_compile branch doesn't successfully compile from the liquid template.
To run the test and compile the firmware, run rspec
(or be guard
).
The JSON file that it is compiling from is at /spec/fixtures/ergodox_ez.json
The error it puts out is:
keymaps/keymap_145166521168reactor.c:11:583: error: macro "TO" requires 2 arguments, but only 1 given
[0] = KEYMAP(KC_KP_EQUAL,KC_1,KC_2,KC_3,KC_4,KC_5,KC_LEFT,KC_DELETE,KC_Q,KC_W,KC_E,KC_R,KC_T,TO(1),KC_BSPACE,KC_A,KC_S,KC_D,KC_F,KC_G,KC_LSHIFT,KC_Z,KC_X,KC_C,KC_V,KC_B,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TAB,KC_LEFT,KC_RIGHT,KC_TRANSPARENT,KC_LGUI,KC_HOME,KC_SPACE,KC_BSPACE,KC_END,KC_RIGHT,KC_6,KC_7,KC_8,KC_9,KC_0,KC_MINUS,TO(1),KC_Y,KC_U,KC_I,KC_O,KC_P,KC_BSLASH,KC_H,KC_J,KC_K,KC_L,KC_SCOLON,KC_QUOTE,KC_TRANSPARENT,KC_N,KC_M,KC_COMMA,KC_DOT,KC_LCTRL,KC_LSHIFT,KC_UP,KC_DOWN,KC_LBRACKET,KC_RBRACKET,KC_TRANSPARENT,KC_LALT,KC_ESCAPE,KC_PGUP,KC_PGDOWN,KC_TAB,KC_ENTER),
^
keymaps/keymap_145166521168reactor.c:11:583: error: macro "TO" requires 2 arguments, but only 1 given
In file included from keymaps/keymap_145166521168reactor.c:1:0:
keymaps/keymap_145166521168reactor.c:11:94: error: 'TO' undeclared here (not in a function)
[0] = KEYMAP(KC_KP_EQUAL,KC_1,KC_2,KC_3,KC_4,KC_5,KC_LEFT,KC_DELETE,KC_Q,KC_W,KC_E,KC_R,KC_T,TO(1),KC_BSPACE,KC_A,KC_S,KC_D,KC_F,KC_G,KC_LSHIFT,KC_Z,KC_X,KC_C,KC_V,KC_B,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TAB,KC_LEFT,KC_RIGHT,KC_TRANSPARENT,KC_LGUI,KC_HOME,KC_SPACE,KC_BSPACE,KC_END,KC_RIGHT,KC_6,KC_7,KC_8,KC_9,KC_0,KC_MINUS,TO(1),KC_Y,KC_U,KC_I,KC_O,KC_P,KC_BSLASH,KC_H,KC_J,KC_K,KC_L,KC_SCOLON,KC_QUOTE,KC_TRANSPARENT,KC_N,KC_M,KC_COMMA,KC_DOT,KC_LCTRL,KC_LSHIFT,KC_UP,KC_DOWN,KC_LBRACKET,KC_RBRACKET,KC_TRANSPARENT,KC_LALT,KC_ESCAPE,KC_PGUP,KC_PGDOWN,KC_TAB,KC_ENTER),
^
./ergodox_ez.h:108:12: note: in definition of macro 'KEYMAP'
{ k06, k16, KC_NO, k36, KC_NO, k56 }, \
^
./ergodox_ez.h:111:25: error: expected expression before ',' token
{ k08, k18, k28, k38,KC_NO, k58 }, \
^
keymaps/keymap_145166521168reactor.c:13:7: note: in expansion of macro 'KEYMAP'
[1] = KEYMAP(KC_TRANSPARENT,KC_F1,KC_F2,KC_F3,KC_F4,KC_F5,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_F6,KC_F7,KC_F8,KC_F9,KC_F10,KC_F11,KC_TRANSPARENT,KC_UP,KC_KP_7,KC_KP_8,KC_KP_9,KC_KP_ASTERISK,KC_F12,KC_DOWN,KC_KP_4,KC_KP_5,KC_KP_6,KC_KP_PLUS,KC_TRANSPARENT,KC_TRANSPARENT,,KC_KP_1,KC_KP_2,KC_KP_3,KC_KP_SLASH,KC_TRANSPARENT,KC_TRANSPARENT,KC_KP_DOT,KC_KP_0,KC_KP_EQUAL,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT,KC_TRANSPARENT),
^
keymaps/keymap_145166521168reactor.c: In function 'matrix_init_user':
keymaps/keymap_145166521168reactor.c:41:1: warning: control reaches end of non-void function [-Wreturn-type]
};
^
keymaps/keymap_145166521168reactor.c: In function 'matrix_scan_user':
keymaps/keymap_145166521168reactor.c:65:1: warning: control reaches end of non-void function [-Wreturn-type]
};
^
make: *** [obj_145166521168reactor/keymaps/keymap_145166521168reactor.o] Error 1
tdegrunt commented
Should be fixed in master.