minad / vertico

:dizzy: vertico.el - VERTical Interactive COmpletion
GNU General Public License v3.0
1.48k stars 60 forks source link

Issues with compat library? defvar-keymap not found, therefore vertico-map variable not defined #333

Closed mukundzare closed 1 year ago

mukundzare commented 1 year ago

Using Emacs 28.2 with native compilation.

The compat library contains the defvar-keymap macro which is used by vertico to define the vertico-map. I have an auto-updating packages for updating old packages which runs at startup. After the run, vertico doesn't work anymore since it keeps throwing the following stacktrace:

Debugger entered--Lisp error: (void-variable vertico-map)
  byte-code("\302\303!\210\304\305\306\307\310\311\310\312\310\313\314\315\314\316\317\320&\17\210\321\322\323\324\325DD\326\327\330%\210\321\331\323\324\332DD\333\327\334%\210\321\335\323..." [vertico-map minibuffer-local-map require compat custom-declare-group vertico nil "VERTical Interactive COmpletion." :link (info-link :tag "Info Manual" "(vertico)") (url-link :tag "Homepage" "https://github.com/minad/vertico") (emacs-library-link :tag "Library Source" "vertico.el") :group convenience minibuffer :prefix "vertico-" custom-declare-variable vertico-count-format funcall function #f(compiled-function () #<bytecode 0x1f40af5d694e8>) "Format string used for the candidate count." :type (choice (const :tag "No candidate count" nil) (cons string string)) vertico-group-format #f(compiled-function () #<bytecode -0x16e0bd5554652102>) "Format string used for the group title." (choice (const :tag "No group titles" nil) string) vertico-count #f(compiled-function () #<bytecode 0x1f400016fe314>) "Maximal number of candidates to show." integer vertico-preselect #f(compiled-function () #<bytecode 0x8d04dc42e1314>) "Configure if the prompt or first candidate is pres..." (choice (const prompt) (const first) (const directory)) vertico-scroll-margin #f(compiled-function () #<bytecode 0x1f400016feb94>) "Number of lines at the top and bottom when scrolli..." vertico-resize #f(compiled-function () #<bytecode 0x8d04dd3c19194>) "How to resize the Vertico minibuffer window, see `..." (choice (const :tag "Fixed" nil) (const :tag "Shrink and grow" t) (const :tag "Grow-only" grow-only)) vertico-cycle #f(compiled-function () #<bytecode 0x1f400016fe914>) "Enable cycling for `vertico-next' and `vertico-pre..." boolean vertico-multiline #f(compiled-function () #<bytecode 0x1f4013a333128>) ...] 36)
  (vertico-mode)
  load-with-code-conversion("/home/xyz/.emacs.d/init.el" "/home/xyz/.emacs.d/init.el" t t)
  load("/home/xyz/.emacs.d/init" noerror nomessage)
  startup--load-user-init-file(#f(compiled-function () #<bytecode 0x961204172e39dfe>) #f(compiled-function () #<bytecode -0x1f3c686ddc0ca9b5>) t)
  command-line()
  normal-top-level()

I tried deleting the compat installations from my .emacs.d folder from the elpa and straight repos but it still fails.

minad commented 1 year ago

Try again to reinstall. Your bytecode is outdated.

mukundzare commented 1 year ago

Sorry, spoke too soon. I had some other issues with my emacs config I guess. It has fixed now.