abo-abo/swiper

Functions 'ivy--positive-regexps' and 'ivy--string-replace' not known to be defined

tomibennett opened this issue · 0 comments

Using GNU Emacs 29.4 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.23.42, cairo version 1.18.0)

I've got the following warning when on start up.

⛔ Warning (comp): swiper.el:956:23: Warning: the function ‘ivy--positive-regexps’ is not known to be defined.
⛔ Warning (comp): swiper.el:784:16: Warning: the function ‘ivy--string-replace’ is not known to be defined.

And when swiper-isearch is enabled, it does not work.

With M-: (setq debug-on-error t)

When doing M-x swiper-isearch

Debugger entered--Lisp error: (void-function ivy--string-replace)
  ivy--string-replace("\\n" "\n" "")
  swiper--re-builder("")
  ivy-set-text("")
  ivy--reset-state(#s(ivy-state :prompt "Swiper: " :collection swiper-isearch-function :predicate nil :require-match t :initial-input nil :history swiper-history :preselect nil :keymap (keymap (18 . swiper-isearch-C-r) (27 keymap (110 . swiper-isearch-thing-at-point)) (remap keymap (ivy-insert-current . swiper--isearch-insert-current)) keymap (3 keymap (6 . swiper-toggle-face-matching)) (67108919 . swiper-mc) (67108903 . swiper-avy) (12 . swiper-recenter-top-bottom) (27 keymap (113 . swiper-query-replace)) (19 . swiper-C-s)) :update-fn #f(compiled-function () #<bytecode 0x12fd3c39da816d15>) :sort nil :frame #<frame  *Minibuf-1* - GNU Emacs at thinx 0x5ca62e86af98> :window #<window 3 on .emacs> :buffer #<buffer .emacs> :text nil :action (1 ("o" swiper-isearch-action "default") ("w" swiper-isearch-action-copy "copy") ("i" swiper-isearch-action-insert "insert")) :unwind swiper--isearch-unwind :re-builder swiper--re-builder :matcher nil :dynamic-collection t :display-transformer-fn nil :directory "~/" :caller swiper-isearch :current nil :def nil :ignore nil :multi-action nil :extra-props (:fname "/home/tomi/.emacs")))
  ivy-read("Swiper: " swiper-isearch-function :initial-input nil :keymap (keymap (18 . swiper-isearch-C-r) (27 keymap (110 . swiper-isearch-thing-at-point)) (remap keymap (ivy-insert-current . swiper--isearch-insert-current)) keymap (3 keymap (6 . swiper-toggle-face-matching)) (67108919 . swiper-mc) (67108903 . swiper-avy) (12 . swiper-recenter-top-bottom) (27 keymap (113 . swiper-query-replace)) (19 . swiper-C-s)) :dynamic-collection t :require-match t :action swiper-isearch-action :re-builder swiper--re-builder :history swiper-history :extra-props (:fname "/home/tomi/.emacs") :caller swiper-isearch)
  swiper-isearch()
  funcall-interactively(swiper-isearch)
  command-execute(swiper-isearch record)
  execute-extended-command(nil "swiper-isearch" "swiper-isearch")
  funcall-interactively(execute-extended-command nil "swiper-isearch" "swiper-isearch")
  command-execute(execute-extended-command)