Error (use-package): vertico-posframe/:catch: Symbol’s value as variable is void: posframe
wisonye opened this issue · 4 comments
wisonye commented
It works before, but right now it shows the following error:
Error (use-package): vertico-posframe/:catch: Symbol’s value as variable is void: posframe
Installation message:
Contacting host: elpa.gnu.org:443 [2 times]
Parsing tar file...done
Extracting...done
INFO Scraping files for loaddefs...done
GEN vertico-posframe-autoloads.el
Checking /home/wison/.config/emacs/elpa/vertico-posframe-0.7.5... [3 times]
Wrote /home/wison/.config/emacs/elpa/vertico-posframe-0.7.5/vertico-posframe.elc
Checking /home/wison/.config/emacs/elpa/vertico-posframe-0.7.5...
Done (Total of 1 file compiled, 2 skipped)
Package ‘vertico-posframe’ installed.
And here is my configuration:
;;
;; Only enabled in GUI mode!!!
;;
(if (display-graphic-p nil)
(use-package vertico-posframe
:after vertico
:init
;;
;; The following setting is saying:
;;
;; All rest 'vertico-multiform-commands' use default popup
;; except the 'consult-imenu' and 'consult-ripgrep' (use 'vertico-buffer-mode')
;;
(setq vertico-multiform-commands
'(
(consult-imenu buffer) ; Uses 'vertico-buffer-mode'
(consult-ripgrep buffer) ; Uses 'vertico-buffer-mode'
;;
;; Use popup as default
;;
(t posframe
(vertico-posframe-poshandler . posframe-poshandler-frame-center)
(vertico-posframe-border-width . 2)
)
)
)
;;
;; Control popup left and right paddings
;;
(setq vertico-posframe-parameters
'((left-fringe . 10)
(right-fringe . 10)
)
)
:config
(vertico-multiform-mode 1)
;;
;; When enabling 'vertico-multiform-mode', 'vertico-posframe-mode' will be
;; activated/deactivated by 'vertico-multiform-mode' dynamically when you
;; add ‘posframe’ setting to 'vertico-multiform-commands,' please do not
;; enable 'vertico-posframe-mode' globally at the moment!!!
;;
;; (vertico-posframe-mode 1)
)
)
Extra information you might need to know:
OS: Arch Linux x86_64
Kernel: 6.1.69-1-lts
pacman --sync --search emacs | rg installed
extra/emacs-nativecomp 29.1-4 [installed]
g-simmons commented
Same issue here
tumashu commented
update to v0.7.6 and try again
g-simmons commented
I installed from source (commit 27d3939) and it's working for me now.
Haven't updated to latest commit yet.
wisonye commented
update to v0.7.6 and try again
Yup, fixed, thanks :)