ericdanan/counsel-projectile

Projectile ag and grep - abbreviate-file-name: Wrong type argument: stringp, nil

MarcoHassan opened this issue · 1 comments

I know this issue was raised before. It was solved in a previous release. Nonetheless I am using the latest projectile version 2.3.0, and something is still broken.

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  string-match("^/tmp_mnt/" nil)
  abbreviate-file-name(nil)
  projectile-locate-dominating-file(nil ".git")
  projectile-project-vcs()
  projectile-ag("http" nil)
  funcall-interactively(projectile-ag "http" nil)
  call-interactively(projectile-ag record nil)
  command-execute(projectile-ag record)
  counsel-M-x-action("projectile-ag")
  ivy-call()
  ivy-read("M-x " [## hasNextPage ansi-color-apply-overlay-face epg-context-signers locals hierarchy-convert-to-tree-widget nxml-fontify-matcher vc-git-stash-snapshot gdb-script-syntax-propertize-function reftex-default-bibliography image-dired-update-property diredp-set-union js2-number-node-p--cmacro markdown-match-bold lsp-folding-range-limit extend-region-p LOCALP vc-hg--read-u8 electric-help-orig-major-mode vc-src-log-switches lsp-ui-flycheck resourceOperations gnus-summary-recenter elpy-insert--generic-button-action cl-print--preprocess which-key-side-window-max-height infix-token :install org-agenda-regexp-filter-preset ein:connect js2-EXPORT IBM\ Plex\ Sans\ Condensed ac-ropemacs-initialize shr-parse-image-data image-dired-cmd-rotate-thumbnail-options quality undo-tree-visualizer-buffer-name time-format eshell-output-filter \' tramp-rename-files gnus-summary-catchup-from-here tramp-cache-data js2-var-decl-node-pos--cmacro js2-array-node-elems elfeed-search-date-face not-at-beginning-of-line log-edit-set-header elpy-autodoc--show-doc projectile-tags-file-name ...] :predicate #f(compiled-function (sym) #<bytecode 0x1ff0aadd83ad>) :require-match t :history counsel-M-x-history :action counsel-M-x-action :keymap (keymap (67108908 . counsel--info-lookup-symbol) (67108910 . counsel-find-symbol)) :initial-input nil :caller counsel-M-x)
  counsel-M-x()
  funcall-interactively(counsel-M-x)
  call-interactively(counsel-M-x nil nil)
  command-execute(counsel-M-x)

My configuration

  (use-package projectile
    :ensure t)
  ;; Later on, after loading exec-path-from-shell package

  (projectile-mode +1)
  (define-key projectile-mode-map (kbd "s-p") 'projectile-command-map)

Thank you in advance for the help.

sorry wrong project