abo-abo / swiper

Ivy - a generic completion frontend for Emacs, Swiper - isearch with an overview, and more. Oh, man!
https://oremacs.com/swiper/
2.29k stars 338 forks source link

"ivy--string-replace" is void #3055

Closed binbowang1987 closed 2 weeks ago

binbowang1987 commented 2 weeks ago

emacs version: 29.4 x86_64-w64-mingw32

image

basil-conto commented 2 weeks ago

Some additional information that may be useful:

Thanks.

binbowang1987 commented 2 weeks ago
  1. it yield 't'
  2. ivy: Version: 0.14.0, swiper: Version:0.14.2
  3. here is the info from report-emacs-bug
    
    In GNU Emacs 29.4 (build 2, x86_64-w64-mingw32) of 2024-07-05 built on
    AVALON
    Windowing system distributor 'Microsoft Corp.', version 10.0.22631
    System Description: Microsoft Windows 10 Pro (v10.0.2009.22631.4037)

Configured using: 'configure --with-modules --without-dbus --with-native-compilation=aot --without-compress-install --with-sqlite3 --with-tree-sitter CFLAGS=-O2'

Configured features: ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XPM ZLIB

(NATIVE_COMP present but libgccjit not available)

Important settings: value of $LANG: CHS locale-coding-system: cp936

Major mode: ELisp/d

Minor modes in effect: global-hl-todo-mode: t hl-todo-mode: t highlight-doxygen-global-mode: t dap-tooltip-mode: t dap-ui-controls-mode: t dap-ui-mode: t treemacs-filewatch-mode: t treemacs-follow-mode: t treemacs-git-mode: t treemacs-fringe-indicator-mode: t global-hl-line-mode: t gdb-many-windows: t dap-mode: t yas-minor-mode: t pyvenv-mode: t global-anzu-mode: t anzu-mode: t ws-butler-mode: t clean-aindent-mode: t global-undo-tree-mode: t undo-tree-mode: t volatile-highlights-mode: t ivy-mode: t delete-selection-mode: t helm-mode: t helm-minibuffer-history-mode: t helm--remap-mouse-mode: t async-bytecomp-package-mode: t which-key-mode: t which-function-mode: t global-git-commit-mode: t magit-auto-revert-mode: t shell-dirtrack-mode: t drag-stuff-global-mode: t drag-stuff-mode: t projectile-mode: t global-company-mode: t company-mode: t override-global-mode: t global-docstr-mode: t docstr-mode: t desktop-save-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t

Load-path shadows: c:/Users/hua'wei/AppData/Roaming/.emacs.d/elpa/transient-20240821.158/transient hides d:/Program Files/Emacs/emacs-29.4/share/emacs/29.4/lisp/transient

Features: (shadow sort mail-extr emacsbug cl-print cus-start winner tramp-archive tramp-gvfs helm-command helm-elisp helm-eval edebug debug backtrace helm-info swiper mm-view mml-smime smime gnutls dig gnus-sum shr pixel-fill kinsoku url-file svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 nnoo gnus-spec gnus-int gnus-range gnus-win gnus nnheader range ol-docview doc-view jka-compr ol-bibtex bibtex ol-bbdb ol-w3m ol-doi org-link-doi company-oddmuse company-keywords company-etags company-gtags company-dabbrev-code company-dabbrev company-files company-clang company-cmake company-semantic company-template company-bbdb hl-todo highlight-doxygen qt-pro-mode setup-dap dap-mouse dap-ui lsp-treemacs lsp-treemacs-generic lsp-treemacs-themes treemacs-treelib treemacs treemacs-header-line treemacs-compatibility treemacs-mode treemacs-interface treemacs-persistence treemacs-filewatch-mode treemacs-follow-mode treemacs-rendering treemacs-annotations treemacs-async treemacs-workspaces treemacs-dom treemacs-visuals treemacs-fringe-indicator pulse treemacs-faces treemacs-icons treemacs-scope treemacs-themes treemacs-core-utils pfuture hl-line treemacs-logging treemacs-customization treemacs-macros gdb-mi bindat gud bui bui-list bui-info bui-entry bui-core bui-history bui-button bui-utils lsp-lens dap-mode dap-tasks dap-launch lsp-docker yaml posframe dap-overlays setup-rust rustic-flycheck rustic-spellcheck rustic-expand rustic-lsp rustic-playground rustic-rustfix rustic-babel rustic-rustfmt rustic-comint rustic-clippy rustic-doc rustic-popup rustic-cargo rustic-compile xterm-color rustic-interaction rustic rust-utils rust-prog-mode rust-mode rust-common rust-rustfmt setup-python yasnippet highlight-indentation flymake-proc flymake company-capf help-fns radix-tree elpy elpy-rpc elpy-shell elpy-profile elpy-django elpy-refactor python treesit ido hideshow cus-edit pp cus-load pyvenv eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util setup-org org-indent org-bullets setup-lsp helm-lsp helm-imenu lsp-ui lsp-ui-flycheck lsp-ui-doc goto-addr lsp-ui-imenu lsp-ui-peek lsp-ui-sideline flycheck lsp-ui-util face-remap lsp-mode lsp-protocol tree-widget wid-edit spinner network-stream markdown-mode edit-indirect lv inline ht f f-shortdoc ewoc setup-c setup-editing anzu ws-butler dtrt-indent clean-aindent-mode undo-tree queue etags fileloop xref advice volatile-highlights setup-ivy-counsel ivy delsel ivy-faces ivy-overlay colir color setup-helm helm-projectile helm-mode helm-misc helm-files image-dired image-dired-tags image-dired-external image-dired-util image-mode exif tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat parse-time iso8601 helm-buffers all-the-icons all-the-icons-faces data-material data-weathericons data-octicons data-fileicons data-faicons data-alltheicons helm-occur helm-tags helm-locate helm-types helm-grep helm-regexp helm-utils helm-help helm helm-global-bindings helm-easymenu helm-core async-bytecomp helm-source helm-multi-match helm-lib setup-general org-download org-element org-persist xdg avl-tree generator org-attach org-id org-refile org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src ob-comint org-pcomplete org-list org-footnote org-faces org-entities noutline outline ob-emacs-lisp ob-core ob-eval org-cycle org-table ol org-fold org-fold-core org-keys oc org-loaddefs find-func cal-menu calendar cal-loaddefs org-version org-compat org-macs url-http url-auth url-gw nsm async which-key cmake-mode rst magit-submodule magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff diff-mode git-commit log-edit message sendmail yank-media puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process with-editor shell pcomplete server magit-mode transient edmacro kmacro benchmark magit-git magit-base magit-section format-spec cursor-sensor crm dash compat compat-30 drag-stuff projectile project lisp-mnt grep compile text-property-search comint ansi-osc ansi-color ring ibuf-ext ibuffer ibuffer-loaddefs thingatpt company spacemacs-dark-theme spacemacs-theme yaml-mode protobuf-mode cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key easy-mmode use-package-core comp comp-cstr warnings icons cl-extra help-mode docstr-typescript docstr-swift docstr-scala docstr-rust docstr-ruby docstr-python docstr-php docstr-objc docstr-lua docstr-js docstr-java docstr-groovy docstr-go docstr-csharp docstr-c++ docstr-c docstr-actionscript docstr docstr-key docstr-faces docstr-writers docstr-util s view desktop frameset finder-inf cmake-mode-autoloads cnfonts-autoloads doom-modeline-autoloads helm-gtags-autoloads helm-autoloads helm-core-autoloads json-mode-autoloads rx lsp-docker-autoloads lsp-treemacs-autoloads lsp-ui-autoloads lsp-mode-autoloads nerd-icons-autoloads popup-autoloads projectile-autoloads protobuf-mode-autoloads rustic-autoloads flycheck-autoloads markdown-mode-autoloads rust-mode-autoloads shrink-path-autoloads spacemacs-theme-autoloads swiper-autoloads treemacs-all-the-icons-autoloads treemacs-magit-autoloads magit-autoloads pcase magit-section-autoloads git-commit-autoloads transient-autoloads treemacs-autoloads posframe-autoloads wfnames-autoloads which-key-autoloads with-editor-autoloads info compat-autoloads xterm-color-autoloads yaml-autoloads yaml-mode-autoloads yasnippet-autoloads package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib china-util rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process native-compile emacs)

Memory information: ((conses 16 1032314 333842) (symbols 48 67589 33) (strings 32 282715 82093) (string-bytes 1 8888309) (vectors 16 132619) (vector-slots 8 2070538 566756) (floats 8 1457 2952) (intervals 56 5973 4540) (buffers 984 19))

basil-conto commented 2 weeks ago
2. ivy: Version: 0.14.0, swiper: Version:0.14.2

Perhaps this is the root of the problem: Ivy and Swiper are generally expected to be at the same version (technically they should be distributed as the same package, but the fact that they are not is a historical accident at this point).

Have you tried upgrading ivy to 0.14.2?

binbowang1987 commented 2 weeks ago
2. ivy: Version: 0.14.0, swiper: Version:0.14.2

Perhaps this is the root of the problem: Ivy and Swiper are generally expected to be at the same version (technically they should be distributed as the same package, but the fact that they are not is a historical accident at this point).

Have you tried upgrading ivy to 0.14.2?

Yes, it works for me. I upgrade ivy to 0.14.2 and it works fine now. Thank you.