ericdanan/counsel-projectile

switch-project-action run-eshell fails

jkozak opened this issue · 2 comments

setting counsel-projectile-switch-project-action to counsel-projectile-switch-project-action-run-eshell causes project switching to fail. This is because projectile-run-eshell now has a single, mandatory argument yet is called with zero args. Looking at the code this probably also applies to the otherr shells.

I fixed it temporarily by creating a variant action:

(defun jk/counsel-projectile-switch-project-action-run-eshell (project)
      "Invoke `eshell' from PROJECT's root."
      (let ((projectile-switch-project-action
             #'(lambda () (projectile-run-eshell "")) ))
        (counsel-projectile-switch-project-by-name project)))

and using that instead.

Thanks for reporting. It should work now, please update counsel-projectile and test.

This fixes my problem - thanks.