ericdanan/counsel-projectile

wrong-type-argument stringp when calling counsel-projectile-rg

condy0919 opened this issue · 3 comments

Since counsel-20200519.72, counsel-rg-base-command is defined with

(defcustom counsel-rg-base-command
  (split-string
   (if (memq system-type '(ms-dos windows-nt))
       "rg -M 240 --with-filename --no-heading --line-number --color never %s --path-separator / ."
     "rg -M 240 --with-filename --no-heading --line-number --color never %s"))
  "Alternative to `counsel-ag-base-command' using ripgrep.

Note: don't use single quotes for the regex."
  :type '(choice
          (repeat :tag "List to be used in `process-file'." string)
          (string :tag "String to be used in `shell-command-to-string'.")))

counsel-projectile should handle the cases when counsel-rg-base-command is
a list of string.

Thanks, please test.

Works for me so far, thank you!

Not OP, but had the same problem and it is now fixed over here with the latest version.