cosmicexplorer / helm-rg

ripgrep is nice
GNU General Public License v3.0
101 stars 21 forks source link

error in process filter: Symbol’s function definition is void: incf #7

Closed jasonrobot closed 6 years ago

jasonrobot commented 6 years ago

Getting this when running helm-rg, or helm-projectile-rg

error in process filter: Symbol’s function definition is void: incf

Looks like its due to incf being defined in the cl-lib package as "cl-incf", but aliased to "incf" in the cl package.

I was able to fix this locally by adding

(require 'cl)

after the line where cl-lib is required. Havent tested this thuroughly, so it might just be me. If no one beats me to it, I'll look in to it later today.

jasonrobot commented 6 years ago

Did some more testing, here's my init file I'm testing with:

(require 'package)
(add-to-list 'package-archives
             '("mepla" . "http://melpa.milkbox.net/packages/") t)
(package-initialize)
(use-package helm)
(use-package helm-rg)

I found that if-let will be nil too unless it gets loaded somewhere else somehow. Rather than requireing the cl package, I prefixed the incf refrences with cl-, since other functions are using that already (running helm-projectile-rg was loading that for me before, so I didnt see it)

After that, using that init file, both "helm-rg" and "helm-projectile-rg" work fine.