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

counsel-find-file fails on some paths #780

Closed
Stebalien opened this Issue Nov 17, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@Stebalien
Contributor

Stebalien commented Nov 17, 2016

I'm getting the following error when calling counsel-find-file on any string not starting with a forward slash (/) or a file in the current directory.

To reproduce, run, e.g., (counsel-find-file "16-185436.").

Backtrace:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  file-exists-p(nil)
  ivy--reset-state([cl-struct-ivy-state "Find file: " read-file-name-internal nil confirm-after-completion "16-185436." file-name-history nil (keymap (C-backspace . counsel-up-directory) (67108991 . counsel-up-directory)) nil nil #<frame emacs@bistromath 0x12f8c30> #<window 3 on *scratch*> #<buffer *scratch*> nil (1 ("o" #[257 "\304\305�!!r\306\307\310\311\312�!\313\"\314$\216\315�@\316\"\210	\205��\317\n!?\205$���\320\321�\n\"!+\207" [ivy-last counsel-find-file-speedup-remote ivy--directory find-file-hook internal--before-with-selected-window ivy--get-window make-byte-code 0 "\301\300!\207" vconcat vector [internal--after-with-selected-window] 2 select-window norecord file-remote-p find-file expand-file-name] 8 "\n\n(fn X)"] "default") ("j" find-file-other-window "other window") ("b" counsel-find-file-cd-bookmark-action "cd bookmark") ("x" counsel-find-file-extern "open externally")) nil nil counsel--find-file-matcher nil ivy-read-file-transformer "~/" counsel-find-file])
  ivy-read("Find file: " read-file-name-internal :matcher counsel--find-file-matcher :initial-input "16-185436." :action #[257 "\304\305�!!r\306\307\310\311\312�!\313\"\314$\216\315�@\316\"\210	\205��\317\n!?\205$���\320\321�\n\"!+\207" [ivy-last counsel-find-file-speedup-remote ivy--directory find-file-hook internal--before-with-selected-window ivy--get-window make-byte-code 0 "\301\300!\207" vconcat vector [internal--after-with-selected-window] 2 select-window norecord file-remote-p find-file expand-file-name] 8 "\n\n(fn X)"] :preselect nil :require-match confirm-after-completion :history file-name-history :keymap (keymap (C-backspace . counsel-up-directory) (67108991 . counsel-up-directory)) :caller counsel-find-file)
  counsel-find-file("16-185436.")
  eval-buffer()  ; Reading at buffer position 218
  eval((eval-buffer) nil)
  eval-expression((eval-buffer) nil)
  funcall-interactively(eval-expression (eval-buffer) nil)
  call-interactively(eval-expression nil nil)
  command-execute(eval-expression)

See syl20bnr/spacemacs#7762

@abo-abo

This comment has been minimized.

Owner

abo-abo commented Nov 17, 2016

Thanks.

@Stebalien

This comment has been minimized.

Contributor

Stebalien commented Nov 17, 2016

Thanks for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment