minad / consult

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

Consult-find, consult-grep, etc. show no candidates #126

Closed ghost closed 3 years ago

ghost commented 3 years ago

I am on Emacs 28.0.50 and am using the most recent version of consult from the main branch.

When I use consult-find, consult-locate, consult-grep, consult-ripgrep, and consult-git-grep no candidates are shown, regardless of if I start the search with # or not. I did check to make sure that the executables that were being called by these programs were under the correct name and installed on my system.

I'm on Linux and I believe that these functions should be calling asynchronous programs. I check the output of systemctl status --user emacs (I run Emacs as a daemon) so I can see all of Emacs' child processes. I do not see any grep, rg, or fd processes appearing when I use one of these functions.

Here is my consult configuration:

(use-package consult
  :ensure-system-package ((fd . fdfind)
                          (rg . ripgrep))
  :after selectrum
  :straight (consult :type git :host github :repo "minad/consult")
  :hook (selectrum-mode . consult-preview-mode)
  :custom
  (consult-preview-outline nil) ; Annoying
  (consult-mode-histories ; What variable consult-history looks at for history
   '((eshell-mode . eshell-history-ring)
     (comint-mode . comint-input-ring)
     (term-mode . term-input-ring))
   )
  (consult--fdfind-cmd "fd" "--color=never" "--full-path") ; Fd-find command for Fedora
  (consult-project-root-function 'projectile-project-root)
  :config
  (general-define-key
   [remap apropos-command] '(consult-apropos :which-key "Consult apropos")
   )

  (add-hook 'prog-mode-hook
            (lambda ()
              (kb/leader-keys
                "le" '(consult-error :which-key "Consult error"))
              ))

  (kb/leader-keys
    "bb" '(consult-buffer :which-key "Consult buffer")
    ;; ("C-x 4 b" . consult-buffer-other-window)
    ;; ("C-x 5 b" . consult-buffer-other-frame)
    ;; ("C-x r x" . consult-register)
    "mm" '(counsel-bookmark :which-key "Consult bookmark")
    "mr" '(consult-mark :which-key "Consult mark-ring")
    "so" '(consult-outline :which-key "Consult outline")
    "ss" '(consult-line :which-key "Consult swiper")
    "si" '(consult-imenu :which-key "Consult imenu")
    ;; ("-s m" . consult-multi-occur)
    "iy" '(consult-yank-pop :which-key "Consult yank-pop")
    "ha" '(consult-apropos :which-key "Consult apropos")
    "pf" '(consult-find :which-key "Consult find file")
    "ps" '(consult-ripgrep :which-key "Consult rg")
    )
  )
minad commented 3 years ago

Do you have consult-selectrum installed? Duplicate #125. Let's discuss the potential issues in #125.