minad / consult

:mag: consult.el - Consulting completing-read
GNU General Public License v3.0
1.25k stars 105 forks source link

[134217774] is not a valid key definition; see ‘key-valid-p' #759

Closed arkhan closed 1 year ago

arkhan commented 1 year ago

Hello, I have this error:

Debugger entered--Lisp error: (error "[134217774] is not a valid key definition; see  ke...")
  error("%S is not a valid key definition; see `key-valid-p..." [134217774])
  consult--key-parse([134217774])
  consult--preview-key-normalize((any [134217774]))
  consult--setup-keymap(nil nil ((98 . "Buffer") (32 . "Hidden Buffer") (42 . "Modified Buffer") (102 . "File") (109 . "Bookmark") (112 . "Project")) (:predicate #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_169> :keys (any [134217774])))
  consult--minibuffer-setup-hook()
  #<subr completing-read-default>("Switch to: " #f(compiled-function (str pred action) #<bytecode -0xf3a17fd44b6793f>) #f(compiled-function (&rest args2) #<bytecode -0xad059be6737663f>) confirm-after-completion nil consult--buffer-history nil nil)
  apply((#<subr completing-read-default> "Switch to: " #f(compiled-function (str pred action) #<bytecode -0xf3a17fd44b6793f>) #f(compiled-function (&rest args2) #<bytecode -0xad059be6737663f>) confirm-after-completion nil consult--buffer-history nil nil))
  vertico--advice(#<subr completing-read-default> "Switch to: " #f(compiled-function (str pred action) #<bytecode -0xf3a17fd44b6793f>) #f(compiled-function (&rest args2) #<bytecode -0xad059be6737663f>) confirm-after-completion nil consult--buffer-history nil nil)
  apply(vertico--advice #<subr completing-read-default> ("Switch to: " #f(compiled-function (str pred action) #<bytecode -0xf3a17fd44b6793f>) #f(compiled-function (&rest args2) #<bytecode -0xad059be6737663f>) confirm-after-completion nil consult--buffer-history nil nil))
  completing-read-default("Switch to: " #f(compiled-function (str pred action) #<bytecode -0xf3a17fd44b6793f>) #f(compiled-function (&rest args2) #<bytecode -0xad059be6737663f>) confirm-after-completion nil consult--buffer-history nil nil)
  completing-read("Switch to: " #f(compiled-function (str pred action) #<bytecode -0xf3a17fd44b6793f>) #f(compiled-function (&rest args2) #<bytecode -0xad059be6737663f>) confirm-after-completion nil consult--buffer-history nil nil)
  #f(compiled-function () #<bytecode -0x9a21b1346fb191d>)()
  consult--with-preview-1((:predicate #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_169> :keys (any [134217774])) #f(compiled-function (action arg0) #<bytecode 0x2e9659df52da615>) #f(compiled-function (narrow input cand) #<bytecode -0x1849ac57b6ce0e46>) #f(compiled-function (&rest args2) #<bytecode -0x14bb5899f299263f>) #f(compiled-function () #<bytecode -0x9a21b1346fb191d>))
  consult--read-1((#("*scratch* " 0 9 (face consult-buffer multi-category (buffer . "*scratch*")) 9 10 (invisible t consult-strip t)) #("*Messages* " 0 10 (face consult-buffer multi-category (buffer . "*Messages*")) 10 11 (invisible t consult-strip t)) #("*straight-process* " 0 18 (face consult-buffer multi-category (buffer . "*straight-process*")) 18 19 (invisible t consult-strip t)) #("*dashboard* " 0 11 (face consult-buffer multi-category (buffer . "*dashboard*")) 11 12 (invisible t consult-strip t)) #(" *Minibuf-1* " 0 12 (face consult-buffer multi-category (buffer . " *Minibuf-1*")) 12 13 (invisible t consult-strip t)) #(" *Minibuf-0* " 0 12 (face consult-buffer multi-category (buffer . " *Minibuf-0*")) 12 13 (invisible t consult-strip t)) #(" *Echo Area 0* " 0 14 (face consult-buffer multi-category (buffer . " *Echo Area 0*")) 14 15 (invisible t consult-strip t)) #(" *Echo Area 1* " 0 14 (face consult-buffer multi-category (buffer . " *Echo Area 1*")) 14 15 (invisible t consult-strip t)) #(" *code-conversion-work* " 0 23 (face consult-buffer multi-category (buffer . " *code-conversion-work*")) 23 24 (invisible t consult-strip t)) #(" *code-converting-work* " 0 23 (face consult-buffer multi-category (buffer . " *code-converting-work*")) 23 24 (invisible t consult-strip t)) #(" *string-pixel-width* " 0 21 (face consult-buffer multi-category (buffer . " *string-pixel-width*")) 21 22 (invisible t consult-strip t)) #("*Warnings* " 0 10 (face consult-buffer multi-category (buffer . "*Warnings*")) 10 11 (invisible t consult-strip t)) #("*Async-native-compile-log* " 0 26 (face consult-buffer multi-category (buffer . "*Async-native-compile-log*")) 26 27 (invisible t consult-strip t)) #("*scratch* " 0 9 (face consult-buffer multi-category (buffer . "*scratch*")) 9 10 (invisible t consult-strip t)) #("*Messages* " 0 10 (face consult-buffer multi-category (buffer . "*Messages*")) 10 11 (invisible t consult-strip t)) #("*straight-process* " 0 18 (face consult-buffer multi-category (buffer . "*straight-process*")) 18 19 (invisible t consult-strip t)) #("*dashboard* " 0 11 (face consult-buffer multi-category (buffer . "*dashboard*")) 11 12 (invisible t consult-strip t)) #("~/.config/emacs/README.org " 0 26 (face consult-file multi-category (file . "~/.config/emacs/README.org")) 26 27 (invisible t consult-strip t)) #("~/.guix-packages/pantheon/packages/node-xyz.scm " 0 47 (face consult-file multi-category (file . "~/.guix-packages/pantheon/packages/node-xyz.scm")) 47 48 (invisible t consult-strip t)) #("~/.guix-packages/pantheon/packages/python-xyz.scm " 0 49 (face consult-file multi-category (file . "~/.guix-packages/pantheon/packages/python-xyz.scm")) 49 50 (invisible t consult-strip t)) #("~/.guix-packages/README.org " 0 27 (face consult-file multi-category (file . "~/.guix-packages/README.org")) 27 28 (invisible t consult-strip t)) #("/media/data/dev/docker/odoo/v14.0/addons/oo_l10n_e..." 0 86 (face consult-file multi-category (file . "/media/data/dev/docker/odoo/v14.0/addons/oo_l10n_e...")) 86 87 (invisible t consult-strip t)) #("/media/data/dev/docker/odoo/v14.0/addons/oo_l10n_e..." 0 86 (face consult-file multi-category (file . "/media/data/dev/docker/odoo/v14.0/addons/oo_l10n_e...")) 86 87 (invisible t consult-strip t)) #("/media/data/dev/docker/odoo/v14.0/addons/oo_l10n_e..." 0 102 (face consult-file multi-category (file . "/media/data/dev/docker/odoo/v14.0/addons/oo_l10n_e...")) 102 103 (invisible t consult-strip t)) #("/media/data/dev/docker/odoo/v14.0/addons/oo_l10n_e..." 0 79 (face consult-file multi-category (file . "/media/data/dev/docker/odoo/v14.0/addons/oo_l10n_e...")) 79 80 (invisible t consult-strip t)) #("/media/data/dev/docker/odoo/v14.0/addons/oo_l10n_e..." 0 83 (face consult-file multi-category (file . "/media/data/dev/docker/odoo/v14.0/addons/oo_l10n_e...")) 83 84 (invisible t consult-strip t)) #("/media/data/dev/docker/odoo/v14.0/addons/oo_l10n_e..." 0 102 (face consult-file multi-category (file . "/media/data/dev/docker/odoo/v14.0/addons/oo_l10n_e...")) 102 103 (invisible t consult-strip t))) :require-match confirm-after-completion :prompt "Switch to: " :history consult--buffer-history :sort nil :category multi-category :predicate #f(compiled-function (&rest args2) #<bytecode -0xad059be6737663f>) :annotate #f(compiled-function (&rest args2) #<bytecode -0xad059be6697263f>) :group #f(compiled-function (&rest args2) #<bytecode -0xad059be6695a63f>) :lookup #f(compiled-function (&rest args2) #<bytecode -0xad059be6686263f>) :preview-key (:predicate #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_169> :keys (any [134217774])) :narrow ((98 . "Buffer") (32 . "Hidden Buffer") (42 . "Modified Buffer") (102 . "File") (109 . "Bookmark") (112 . "Project")) :state #f(compiled-function (action arg0) #<bytecode 0x2e9659df52da615>) :prompt "Select: " :preview-key any :sort t :lookup #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_161>)
  consult--read((#("*scratch* " 0 9 (face consult-buffer multi-category (buffer . "*scratch*")) 9 10 (invisible t consult-strip t)) #("*Messages* " 0 10 (face consult-buffer multi-category (buffer . "*Messages*")) 10 11 (invisible t consult-strip t)) #("*straight-process* " 0 18 (face consult-buffer multi-category (buffer . "*straight-process*")) 18 19 (invisible t consult-strip t)) #("*dashboard* " 0 11 (face consult-buffer multi-category (buffer . "*dashboard*")) 11 12 (invisible t consult-strip t)) #(" *Minibuf-1* " 0 12 (face consult-buffer multi-category (buffer . " *Minibuf-1*")) 12 13 (invisible t consult-strip t)) #(" *Minibuf-0* " 0 12 (face consult-buffer multi-category (buffer . " *Minibuf-0*")) 12 13 (invisible t consult-strip t)) #(" *Echo Area 0* " 0 14 (face consult-buffer multi-category (buffer . " *Echo Area 0*")) 14 15 (invisible t consult-strip t)) #(" *Echo Area 1* " 0 14 (face consult-buffer multi-category (buffer . " *Echo Area 1*")) 14 15 (invisible t consult-strip t)) #(" *code-conversion-work* " 0 23 (face consult-buffer multi-category (buffer . " *code-conversion-work*")) 23 24 (invisible t consult-strip t)) #(" *code-converting-work* " 0 23 (face consult-buffer multi-category (buffer . " *code-converting-work*")) 23 24 (invisible t consult-strip t)) #(" *string-pixel-width* " 0 21 (face consult-buffer multi-category (buffer . " *string-pixel-width*")) 21 22 (invisible t consult-strip t)) #("*Warnings* " 0 10 (face consult-buffer multi-category (buffer . "*Warnings*")) 10 11 (invisible t consult-strip t)) #("*Async-native-compile-log* " 0 26 (face consult-buffer multi-category (buffer . "*Async-native-compile-log*")) 26 27 (invisible t consult-strip t)) #("*scratch* " 0 9 (face consult-buffer multi-category (buffer . "*scratch*")) 9 10 (invisible t consult-strip t)) #("*Messages* " 0 10 (face consult-buffer multi-category (buffer . "*Messages*")) 10 11 (invisible t consult-strip t)) #("*straight-process* " 0 18 (face consult-buffer multi-category (buffer . "*straight-process*")) 18 19 (invisible t consult-strip t)) #("*dashboard* " 0 11 (face consult-buffer multi-category (buffer . "*dashboard*")) 11 12 (invisible t consult-strip t)) #("~/.config/emacs/README.org " 0 26 (face consult-file multi-category (file . "~/.config/emacs/README.org")) 26 27 (invisible t consult-strip t)) #("~/.guix-packages/pantheon/packages/node-xyz.scm " 0 47 (face consult-file multi-category (file . "~/.guix-packages/pantheon/packages/node-xyz.scm")) 47 48 (invisible t consult-strip t)) #("~/.guix-packages/pantheon/packages/python-xyz.scm " 0 49 (face consult-file multi-category (file . "~/.guix-packages/pantheon/packages/python-xyz.scm")) 49 50 (invisible t consult-strip t)) #("~/.guix-packages/README.org " 0 27 (face consult-file multi-category (file . "~/.guix-packages/README.org")) 27 28 (invisible t consult-strip t)) #("/media/data/dev/docker/odoo/v14.0/addons/oo_l10n_e..." 0 86 (face consult-file multi-category (file . "/media/data/dev/docker/odoo/v14.0/addons/oo_l10n_e...")) 86 87 (invisible t consult-strip t)) #("/media/data/dev/docker/odoo/v14.0/addons/oo_l10n_e..." 0 86 (face consult-file multi-category (file . "/media/data/dev/docker/odoo/v14.0/addons/oo_l10n_e...")) 86 87 (invisible t consult-strip t)) #("/media/data/dev/docker/odoo/v14.0/addons/oo_l10n_e..." 0 102 (face consult-file multi-category (file . "/media/data/dev/docker/odoo/v14.0/addons/oo_l10n_e...")) 102 103 (invisible t consult-strip t)) #("/media/data/dev/docker/odoo/v14.0/addons/oo_l10n_e..." 0 79 (face consult-file multi-category (file . "/media/data/dev/docker/odoo/v14.0/addons/oo_l10n_e...")) 79 80 (invisible t consult-strip t)) #("/media/data/dev/docker/odoo/v14.0/addons/oo_l10n_e..." 0 83 (face consult-file multi-category (file . "/media/data/dev/docker/odoo/v14.0/addons/oo_l10n_e...")) 83 84 (invisible t consult-strip t)) #("/media/data/dev/docker/odoo/v14.0/addons/oo_l10n_e..." 0 102 (face consult-file multi-category (file . "/media/data/dev/docker/odoo/v14.0/addons/oo_l10n_e...")) 102 103 (invisible t consult-strip t))) :require-match confirm-after-completion :prompt "Switch to: " :history consult--buffer-history :sort nil :category multi-category :predicate #f(compiled-function (&rest args2) #<bytecode -0xad059be6737663f>) :annotate #f(compiled-function (&rest args2) #<bytecode -0xad059be6697263f>) :group #f(compiled-function (&rest args2) #<bytecode -0xad059be6695a63f>) :lookup #f(compiled-function (&rest args2) #<bytecode -0xad059be6686263f>) :preview-key (:predicate #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_169> :keys (any [134217774])) :narrow ((98 . "Buffer") (32 . "Hidden Buffer") (42 . "Modified Buffer") (102 . "File") (109 . "Bookmark") (112 . "Project")) :state #f(compiled-function (action arg0) #<bytecode 0x2e9659df52da615>))
  consult--multi(((:name "Buffer" :narrow (98 . "Buffer") :default t :category buffer :face consult-buffer :history buffer-name-history :state consult--buffer-state :enabled (lambda nil (not (project-current))) :items (lambda nil (consult--buffer-query :sort 'visibility :as #'buffer-name))) (:name "Workspace" :narrow (119 . "Workspace") :default t :sort t :category buffer :face consult-buffer :history buffer-name-history :annotate (lambda (dir) (progn (format "Project: %s" (car (cdr ...))))) :state consult--buffer-state :enabled (lambda nil (project-current)) :items (lambda nil (consult--buffer-query :sort 'visibility :directory 'project :as #'buffer-name))) consult--source-hidden-buffer consult--source-modified-buffer consult--source-buffer consult--source-recent-file consult--source-file-register consult--source-bookmark consult--source-project-buffer consult--source-project-recent-file) :require-match confirm-after-completion :prompt "Switch to: " :history consult--buffer-history :sort nil)
  consult-buffer()
  funcall-interactively(consult-buffer)
  command-execute(consult-buffer)

Thanks

sylvesterroos commented 1 year ago

Not sure how I can provide more detailed info, but I have the same kind of issue. After running SPC b b (which executes spacemacs/compleseus-switch-to-buffer) to select a buffer in Spacemacs I get consult--key-parse: [67108896] is not a valid key definition; see ‘key-valid-p’ and it won't execute the function/action

minad commented 1 year ago

Duplicate #747