What did you expect to happen?
I expected a list of files to appear when pressing SPC SPC.
What actually happened?
This error message appears :(
Warning (ivy): rg -M 120 --with-filename --no-heading --line-number --color never --files --no-messages failed: 2
Config: unmodified
Backtrace:
buffer-name(#<buffer *temp*>)
* #f(compiled-function () #<bytecode 0x1ffffe7d983d>)()
counsel--call(("rg" "-M" "120" "--with-filename" "--no-heading" "--line-number" "--color" "never" "--files" "--no-messages") (closure ((args "-M" "120" "--with-filename" "--no-heading" "--line-number" "--color" "never" "--files" "--no-messages") (args "." "-name" ".git" "-prune" "-o" "-type" "f" "-print") t) nil (goto-char (point-min)) (let ((offset (if (member find-program (list "rg" doom-projectile-fd-binary)) 0 2)) files) (while (< (point) (point-max)) (setq files (cons (buffer-substring (+ offset ...) (line-end-position)) files)) (forward-line 1)) (nreverse files))))
(progn (if (listp args) nil (user-error "`counsel-file-jump-args' is a list now, please customize accordingly.")) (counsel--call (cons find-program args) #'(lambda nil (goto-char (point-min)) (let ((offset (if ... 0 2)) files) (while (< (point) (point-max)) (setq files (cons ... files)) (forward-line 1)) (nreverse files)))))
(let* ((args (cond ((executable-find doom-projectile-fd-binary) (cons doom-projectile-fd-binary (list "-t" "f" "-E" ".git"))) ((executable-find "rg") (split-string (format counsel-rg-base-command "--files --no-messages") " " t)) ((cons find-program args)))) (find-program (if args (car-safe (prog1 args (setq args (cdr args)))) (signal 'wrong-number-of-arguments (list '(find-program . args) (length args)))))) (progn (if (listp args) nil (user-error "`counsel-file-jump-args' is a list now, please cus...")) (counsel--call (cons find-program args) #'(lambda nil (goto-char (point-min)) (let ((offset ...) files) (while (< ... ...) (setq files ...) (forward-line 1)) (nreverse files))))))
+ivy--counsel-file-jump-use-fd-rg-a(("." "-name" ".git" "-prune" "-o" "-type" "f" "-print"))
apply(+ivy--counsel-file-jump-use-fd-rg-a ("." "-name" ".git" "-prune" "-o" "-type" "f" "-print"))
counsel--find-return-list(("." "-name" ".git" "-prune" "-o" "-type" "f" "-print"))
counsel-file-jump(nil nil)
funcall-interactively(counsel-file-jump nil nil)
call-interactively(counsel-file-jump)
(let ((this-command 'counsel-find-file)) (call-interactively (cond ((or (file-equal-p default-directory "~") (file-equal-p default-directory "/") (let* ((proot ...)) (if proot (file-equal-p proot "~") nil))) #'counsel-find-file) ((doom-project-p) (let ((files (projectile-current-project-files))) (if (<= (length files) ivy-sort-max-size) #'counsel-projectile-find-file #'projectile-find-file))) (#'counsel-file-jump))))
+ivy/projectile-find-file()
funcall-interactively(+ivy/projectile-find-file)
call-interactively(+ivy/projectile-find-file nil nil)
command-execute(+ivy/projectile-find-file)
Steps to reproduce:
Open emacs and press Space twice
System information:
emacs version 27.0.91
features XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS PDUMPER LCMS2 GMP
build Apr 23, 2020
buildopts ()
windowsys x
daemonp server-running
doom version 2.0.9
build HEAD -> develop, origin/develop, origin/HEAD efa599f07 2020-04-23 13:08:08 -0400
dir ~/.doom.d/
system type gnu/linux
config x86_64-pc-linux-gnu
shell /bin/bash
uname Linux 4.4.0-19041-Microsoft #1-Microsoft Fri Dec 06 14:06:00 PST 2019 x86_64
path (/usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /usr/games /usr/local/games /mnt/c/Program Files (x86)/Common Files/Intel/Shared Libraries/redist/intel64/compiler /mnt/c/Program Files/Microsoft MPI/Bin/ /mnt/c/WINDOWS/system32 /mnt/c/WINDOWS /mnt/c/WINDOWS/System32/Wbem /mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/ /mnt/c/WINDOWS/System32/OpenSSH/ /mnt/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/130/Tools/Binn/ /mnt/c/Program Files (x86)/Microsoft SQL Server/140/Tools/Binn/ /mnt/c/Program Files/Microsoft SQL Server/140/Tools/Binn/ /mnt/c/Program Files/Microsoft SQL Server/140/DTS/Binn/ /mnt/c/Program Files/dotnet/ /mnt/c/Program Files/Microsoft SQL Server/130/Tools/Binn/ /mnt/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn/ /mnt/c/Users/David/AppData/Local/Microsoft/WindowsApps /mnt/c/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/Scripts /mnt/c/Users/David/AppData/Local/Programs/Microsoft VS Code/bin /mnt/c/Users/David/AppData/Roaming/Python/Python36/Scripts /snap/bin /usr/local/libexec/emacs/27.0.91/x86_64-pc-linux-gnu/)
config envfile envvar-file
elc-files 0
modules (:completion company ivy :ui doom doom-dashboard doom-quit hl-todo modeline nav-flash ophints (popup +defaults) treemacs vc-gutter vi-tilde-fringe window-select workspaces :editor (evil +everywhere) file-templates fold snippets :emacs dired electric ibuffer undo vc :term vterm :checkers syntax :tools (eval +overlay) lookup magit :lang assembly cc csharp data emacs-lisp fsharp javascript markdown org python sh :app calendar :config (default +bindings +smartparens))
packages (n/a)
unpin (n/a)
elpa (n/a)
As of https://github.com/hlissner/doom-emacs/commit/2389332b90235b9ea2d76159c3cccc8877e31b24 this issue should be resolved. Let me know if that isn't the case and I'll reopen it.
As an alternative, if you have fd installed, counsel-file-jump will use that instead (and it should work better/faster).
Thanks for bringing it to my attention!
Thank you it's working now.
Most helpful comment
As of https://github.com/hlissner/doom-emacs/commit/2389332b90235b9ea2d76159c3cccc8877e31b24 this issue should be resolved. Let me know if that isn't the case and I'll reopen it.
As an alternative, if you have
fdinstalled, counsel-file-jump will use that instead (and it should work better/faster).Thanks for bringing it to my attention!