justbur / emacs-which-key

Emacs package that displays available keybindings in popup
GNU General Public License v3.0
1.73k stars 87 forks source link

Error running timer ‘which-key--update’: (void-function take) #373

Closed rochgs closed 4 months ago

rochgs commented 4 months ago

Hello there :wave:

When I input a prefix and wait for suggestion, I get not suggestions but the message:

Error running timer ‘which-key--update’: (void-function take)

Checking the native compile log I see a related warning:

which-key.el:2019:24: Warning: the function ‘take’ is not known to be defined.

I can see take is called from that point in the code. Other than that, I know little to none about Lisp or Emacs built-in functions (if that's what that take is), so I don't know what else to do. I have the same configuration in another machine with the exact Emacs version. You can check my configuration here, if needed. I am doing nothing fancy. Installing emacs-which-keys with straight here, then (which-key-mode 1) here.

My Emacs version:

GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.37, cairo version 1.16.0) of 2023-05-14, modified by Debian

Any tip will be more than welcome. Thank you :bow:

rochgs commented 4 months ago

Quick update. This no longer applies:

I have the same configuration in another machine with the exact Emacs version

Straight just updated the packages and now I have the same issue in the other instance,

I see the call to take was added two weeks ago. I suppose that made the package incompatible with my Emacs version or it added new requirements I am missing.

justbur commented 4 months ago

Should be fixed now. We're prepping this package to be included in emacs itself, and take is now a built-in function, but I see it was only added recently.

rochgs commented 4 months ago

Should be fixed now.

Indeed!

We're prepping this package to be included in emacs itself

Those are excellent news :raised_hands:

Thank you for your time and effort.