chenyanming / calibredb.el

Emacs calibre client - An Ebook Management Solution in Emacs.
GNU General Public License v3.0
318 stars 16 forks source link

wrong-type-argument stringp nil #62

Closed rfaulhaber closed 2 years ago

rfaulhaber commented 2 years ago

Getting this error from calibredb-find-counsel, haven't had a ton of luck in debugging it. This error occurs for anything I pick.

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  calibredb-get-file-path(nil t)
  calibredb-find-file((((:id "3505") (:author-sort "Magazine, Logic") (:book-dir "Logic Magazine/Logic Magazine Issue 16_ Clouds (35...") (:book-name "Logic Magazine Issue 16_ Clouds - Logic Magazine") (:book-format "epub,pdf") (:book-pubdate "2022-04-09 21:21:15+00:00") (:book-title "Logic Magazine Issue 16: Clouds") (:file-path "~/calibre/Logic Magazine/Logic Magazine Issue 16_ ...") (:tag "") (:size "28.19") (:comment "") (:ids "") (:publisher "") (:series "Logic Magazine") (:lang_code "eng") (:last_modified "2022-04-14 13:02:33.602668+00:00"))))
  (lambda (candidate) (calibredb-find-file (cdr candidate)))((#("3505Logic Magazine Issue 16: Clouds               ..." 0 4 (face calibredb-id-face id "3505") 4 54 (face calibredb-title-face) 55 60 (face calibredb-format-face mouse-face calibredb-mouse-face help-echo "Filter with this format" keymap (keymap (mouse-1 . calibredb-format-mouse-1))) 61 72 (face calibredb-date-face mouse-face calibredb-mouse-face help-echo "Filter with this date" keymap (keymap (mouse-1 . calibredb-date-mouse-1))) 73 81 (author "Magazine" face calibredb-author-face mouse-face calibredb-mouse-face help-echo "Filter with this author: Magazine" keymap (keymap (mouse-1 . calibredb-author-mouse-1))) 82 88 (author " Logic" face calibredb-author-face mouse-face calibredb-mouse-face help-echo "Filter with this author:  Logic" keymap (keymap (mouse-1 . calibredb-author-mouse-1)))) ((:id "3505") (:author-sort "Magazine, Logic") (:book-dir "Logic Magazine/Logic Magazine Issue 16_ Clouds (35...") (:book-name "Logic Magazine Issue 16_ Clouds - Logic Magazine") (:book-format "epub,pdf") (:book-pubdate "2022-04-09 21:21:15+00:00") (:book-title "Logic Magazine Issue 16: Clouds") (:file-path "~/calibre/Logic Magazine/Logic Magazine Issue 16_ ...") (:tag "") (:size "28.19") (:comment "") (:ids "") (:publisher "") (:series "Logic Magazine") (:lang_code "eng") (:last_modified "2022-04-14 13:02:33.602668+00:00"))))
  ivy-call()
  ivy-read("Pick a book: " (... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) :sort nil :caller calibredb-ivy-read)
  calibredb-ivy-read()
  calibredb-find-counsel()
  funcall-interactively(calibredb-find-counsel)
  call-interactively(calibredb-find-counsel nil nil)
  command-execute(calibredb-find-counsel)
chenyanming commented 2 years ago

Thanks for reporting, fixed.