Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't integrate with helm-projectile #23

Closed
TxGVNN opened this Issue Feb 9, 2019 · 2 comments

Comments

Projects
None yet
1 participant
@TxGVNN
Copy link

TxGVNN commented Feb 9, 2019

Thanks for the useful package.

The persp-projectile with projectile work well.
But today I configure persp-projectile with helm-projectile, It didn't work

;; helm-projectile
(use-package helm-projectile
  :ensure t
  :init
  (setq projectile-completion-system 'helm)
  (projectile-mode)
  (define-key projectile-mode-map (kbd "C-x p") 'projectile-command-map)
  (helm-projectile-on))

 (use-package perspective
   :ensure t
   :config (persp-mode))

 (use-package persp-projectile
   :after (perspective)
   :ensure t)

It throw an error:

In ‘Projectile files’ source: ‘#[0 \301 \205;^@r\302^H!\203^P^@^H\206^S^@p\211^Pq\210\303 \304 \305\211^B:\2036^@^B@\262^B^A\306^C^F^F\
"B^AB\262^A^BA\262^C\202^[^@\211\237\266\204)\207 [helm-current-buffer projectile-project-p buffer-live-p projectile-project-root proj\
ectile-current-project-files nil expand-file-name] 8]’ 
 (wrong-type-argument stringp nil)

And I discovered that If I just run once helm-projectile-switch-project before projectile-persp-switch-project, It will work well. But I don't know how to fix it.

@TxGVNN

This comment has been minimized.

Copy link
Author

TxGVNN commented Feb 14, 2019

To clarify

In ‘Projectile files’ source: ‘(closure (helm-projectile-current-project-root helm-ag-base-command t) nil (if (projectile-project-p) (p\
rogn (save-current-buffer (set-buffer (or (and (buffer-live-p helm-current-buffer) helm-current-buffer) (setq helm-current-buffer (curr\
ent-buffer)))) (let* ((root (projectile-project-root)) (--cl-var-- (projectile-current-project-files)) (display nil) (--cl-var-- nil)) \
(while (consp --cl-var--) (setq display (car --cl-var--)) (setq --cl-var-- (cons (cons display (expand-file-name display root)) --cl-va\
r--)) (setq --cl-var-- (cdr --cl-var--))) (nreverse --cl-var--))))))’ 
 (wrong-type-argument stringp nil)
@TxGVNN

This comment has been minimized.

Copy link
Author

TxGVNN commented Feb 14, 2019

I've just found a solution, so I will close this issue. Thanks

(use-package persp-projectile
  :after (perspective)
  :ensure t)
;; helm-projectile
(use-package helm-projectile
  :ensure t
  :config
  (define-key projectile-mode-map [remap projectile-find-other-file] #'helm-projectile-find-other-file)
  (define-key projectile-mode-map [remap projectile-find-file] #'helm-projectile-find-file)
  (define-key projectile-mode-map [remap projectile-find-file-in-known-projects] #'helm-projectile-find-file-in-known-projects)
  (define-key projectile-mode-map [remap projectile-find-file-dwim] #'helm-projectile-find-file-dwim)
  (define-key projectile-mode-map [remap projectile-find-dir] #'helm-projectile-find-dir)
  (define-key projectile-mode-map [remap projectile-recentf] #'helm-projectile-recentf)
  (define-key projectile-mode-map [remap projectile-switch-to-buffer] #'helm-projectile-switch-to-buffer)
  (define-key projectile-mode-map [remap projectile-grep] #'helm-projectile-grep)
  (define-key projectile-mode-map [remap projectile-ack] #'helm-projectile-ack)
  (define-key projectile-mode-map [remap projectile-ag] #'helm-projectile-ag)
  (define-key projectile-mode-map [remap projectile-ripgrep] #'helm-projectile-rg)
  (define-key projectile-mode-map [remap projectile-browse-dirty-projects] #'helm-projectile-browse-dirty-projects)
  (helm-projectile-commander-bindings))

@TxGVNN TxGVNN closed this Feb 14, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.