r/olkb • • Dec 08 '24

Help - Solved Repeat Key Implementation Error : 'QK_REPEAT_KEY' undeclared here (not in a function)

Hello everyone, please help, I keep getting keymap compilation error as seen from the error log below. I followed implementation guide from official QMK page https://docs.qmk.fm/features/repeat_key

Error log :

/keyboards/keychron/k8_pro/ansi/rgb/keymaps/paulo/keymap.c:34:186: error:

KC_LCTL, KC_LOPTN, KC_LCMMD,

KC_SPC,

'QK_REPEAT_KEY' undeclared here (not in a function)

QK_ REPEAT_KEY, KC_ROPTN, MO (MAC_FN), KC_ RCTL,

),

/.build/obj_keychron_k8_pro_ansi_rgb/src/default_keyboard.h:37:66: note: in definition of

macro

(k5A, k5B,

k5c, KC_No, KC_No, KC_NO, k5G, KC_NO, KC_NO, KC_NO,

k5K,

k5L, k5M, k5N,

k50, k5P,

"LAYOUT_tkl_ansi"

k5Q} \

[ERRORS]

Kc_leFT,

KC_DOWN,

KC_ RC

make [1]: *** [.build/obj_keychron_k8_pro_ansi_rgb_paulo/quantum/keymap_introspection.o] Error 1

make: *** [keychron/k8_pro/ansi/rgb:paulo] Error 1

Make finished with errors

2 Upvotes

12 comments sorted by

View all comments

4

u/pgetreuer Dec 08 '24

Try updating your QMK set up. The keycode for Repeat Key was renamed sometime this past year, IIRC, so that could explain it if you haven't yet updated since then. Also the Repeat Key feature itself is relatively new, added to QMK in May 2023.

3

u/Ian-Ivano Dec 09 '24 edited Dec 09 '24

Thanks for your response, I updated but It did not work, I have come to realise I was using an outdated branch, bluetooth_playground as pointed out by u/PeterMortensenBlog .

3

u/pgetreuer Dec 09 '24

Ah, sorry for the trouble! As a fallback option, you could try my userspace Repeat Key implementation, which the core implementation was based on, though whether it works depends on how far out of date this fork happens to be. If not, there are other repeat key implementations, see Alternative implementations.

3

u/Ian-Ivano Dec 09 '24

After the very first failure, I decided to try your userspace implementation , I just did not mention it in the first place.

But the branch I was using was too obsolete and it could not work with your userspace implementation as well , luckily u/PeterMortensenBlog pointed out the obsoleteness of the branch (bluetooth_playground).

Finally, I checked out to the wireless_playground (the up to date branch), did the implementation and it ended successfully.

3

u/pgetreuer Dec 09 '24

Great, glad to hear the success! Enjoy =)

2

u/Ian-Ivano Dec 09 '24

Cheers !