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

invalid-function helm-build-sync-source #5

Closed
tshu-w opened this issue May 20, 2020 · 4 comments
Closed

invalid-function helm-build-sync-source #5

tshu-w opened this issue May 20, 2020 · 4 comments

Comments

@tshu-w
Copy link

tshu-w commented May 20, 2020

config:

(use-package helm :ensure t)

(use-package calibredb
  :quelpa
  (calibredb :repo "chenyanming/calibredb.el" :fetcher github)
  :init
  (require 'calibredb)
  (setq sql-sqlite-program "/usr/bin/sqlite3"
        calibredb-root-dir (expand-file-name "~/Documents/Calibre")
        calibredb-db-dir (concat calibredb-root-dir "/metadata.db")
        calibredb-program "/Applications/calibre.app/Contents/MacOS/calibredb")
  ;; :general
  ;; (tyrant-def
  ;;   "aC" 'calibredb
  ;;   "af" 'calibredb-find-counsel)
  )

GNU Emacs 26.3 (build 1, x86_64-apple-darwin19.4.0, Carbon Version 162 AppKit 1894.4) of 2020-03-27

Debugger entered--Lisp error: (invalid-function helm-build-sync-source)
  helm-build-sync-source("calibredb" :header-name #f(compiled-function (name) #<bytecode 0x43e9335d>) :candidates calibredb-candidates :persistent-action calibredb-find-cover :action calibredb-helm-actions :keymap (keymap (27 keymap (99 . calibredb-set-metadata--comments-1) (116 . calibredb-set-metadata--tags-1)) keymap (normal-state keymap "Auxiliary keymap for Normal state" (32 . helm-toggle-visible-mark) (121 keymap (121 . helm-kill-selection-and-quit) (80 . helm-copy-to-buffer) (112 . helm-yank-selection)) (47 . helm-quit-and-find-file) (71 . helm-end-of-buffer) (107 . helm-previous-line) (106 . helm-next-line) (41 . helm-next-visible-mark) (40 . helm-prev-visible-mark) (103 keymap (114 . helm-refresh) (103 . helm-beginning-of-buffer) (106 . helm-next-source) (107 . helm-previous-source)) (93 keymap (93 . helm-next-source)) (91 keymap (91 . helm-previous-source)) (tab . helm-select-action) (4 . helm-next-page) (15 . helm-next-source) (14 . helm-next-line) (16 . helm-previous-line) (22 . helm-next-page) (13 . helm-maybe-exit-minibuffer) (2 . helm-previous-page) (6 . helm-next-page) (27 keymap (118 . helm-previous-page) (107 . helm-previous-line) (106 . helm-next-line) (108 . helm-execute-persistent-action) (93 . helm-next-source) (91 . helm-previous-source))) (insert-state keymap "Auxiliary keymap for Insert state" (15 . helm-next-source) (14 . helm-next-line) (16 . helm-previous-line) (22 . helm-next-page) (13 . helm-maybe-exit-minibuffer) (2 . helm-previous-page) (6 . helm-next-page) (27 keymap (118 . helm-previous-page) (107 . helm-previous-line) (106 . helm-next-line) (108 . helm-execute-persistent-action) (93 . helm-next-source) (91 . helm-previous-source))) (\(insert\ normal\)-state keymap "Auxiliary keymap for (insert normal) state") (f13 lambda nil (interactive) (helm-select-nth-action 12)) (f12 lambda nil (interactive) (helm-select-nth-action 11)) (f11 lambda nil (interactive) (helm-select-nth-action 10)) (f10 lambda nil (interactive) (helm-select-nth-action 9)) (f9 lambda nil (interactive) (helm-select-nth-action 8)) (f8 lambda nil (interactive) (helm-select-nth-action 7)) (f7 lambda nil (interactive) (helm-select-nth-action 6)) (f6 lambda nil (interactive) (helm-select-nth-action 5)) (f5 lambda nil (interactive) (helm-select-nth-action 4)) (f4 lambda nil (interactive) (helm-select-nth-action 3)) (f3 lambda nil (interactive) (helm-select-nth-action 2)) (f2 lambda nil (interactive) (helm-select-nth-action 1)) (menu-bar keymap (help-menu keymap (describe keymap (describe-mode . helm-help)))) (help keymap (109 . helm-help)) (23 . #f(compiled-function () (interactive nil) #<bytecode 0x439c213d>)) (f1 lambda nil (interactive) (helm-select-nth-action 0)) (8 keymap (109 . helm-help) (104 . undefined) (8 . undefined) (99 . helm-customize-group) (4 . helm-enable-or-switch-to-debug)) (20 . helm-toggle-resplit-and-swap-windows) (C-tab . undefined) (67108897 . helm-toggle-suspend-update) (3 keymap (57 . helm-execute-selection-action-at-nth-+9) (56 . helm-execute-selection-action-at-nth-+8) (55 . helm-execute-selection-action-at-nth-+7) (54 . helm-execute-selection-action-at-nth-+6) (53 . helm-execute-selection-action-at-nth-+5) (52 . helm-execute-selection-action-at-nth-+4) (51 . helm-execute-selection-action-at-nth-+3) (50 . helm-execute-selection-action-at-nth-+2) (49 . helm-execute-selection-action-at-nth-+1) (63 . helm-help) (110 . #f(compiled-function () (interactive nil) #<bytecode 0x439c20e9>)) (108 . helm-display-line-numbers-mode) (62 . helm-toggle-truncate-line) (21 . helm-refresh) (6 . helm-follow-mode) (9 . helm-copy-to-buffer) (11 . helm-kill-selection-and-quit) (25 . helm-yank-selection) (37 . helm-exchange-minibuffer-and-header-line) (95 . helm-toggle-full-frame) (45 . helm-swap-windows)) (67108987 . helm-enlarge-window) (67108989 . helm-narrow-window) (19 . undefined) (24 keymap (57 . helm-execute-selection-action-at-nth-+9) (56 . helm-execute-selection-action-at-nth-+8) (55 . helm-execute-selection-action-at-nth-+7) (54 . helm-execute-selection-action-at-nth-+6) (53 . helm-execute-selection-action-at-nth-+5) (52 . helm-execute-selection-action-at-nth-+4) (51 . helm-execute-selection-action-at-nth-+3) (50 . helm-execute-selection-action-at-nth-+2) (49 . helm-execute-selection-action-at-nth-+1) (2 . helm-resume-list-buffers-after-quit) (98 . helm-resume-previous-session-after-quit) (6 . helm-quit-and-find-file)) (11 . helm-delete-minibuffer-contents) (67108896 . helm-toggle-visible-mark-forward) (0 . helm-toggle-visible-mark) (C-M-up . helm-scroll-other-window-down) (C-M-down . helm-scroll-other-window) (M-prior . helm-scroll-other-window-down) (M-next . helm-scroll-other-window) (12 . helm-recenter-top-bottom-other-window) (left . helm-previous-source) (right . helm-next-source) (15 . helm-next-source) (10 . helm-execute-persistent-action) (9 . helm-select-action) (13 . helm-maybe-exit-minibuffer) (7 . helm-keyboard-quit) (22 . helm-next-page) (27 keymap (110 . next-history-element) (112 . previous-history-element) (115 . undefined) (5 . helm-display-all-sources) (1 . helm-show-all-candidates-in-source) (85 . helm-unmark-all) (97 . helm-mark-all) (109 . helm-toggle-all-marks) (41 . helm-next-visible-mark) (40 . helm-prev-visible-mark) (91) (32 . helm-toggle-visible-mark-backward) (33554454 . helm-scroll-other-window-down) (25 . helm-scroll-other-window-down) (22 . helm-scroll-other-window) (12 . helm-reposition-window-other-window) (111 . helm-previous-source) (62 . helm-end-of-buffer) (60 . helm-beginning-of-buffer) (118 . helm-previous-page)) (next . helm-next-page) (prior . helm-previous-page) ...) :candidate-number-limit 9999)
  byte-code("\301\302!\205\026\0\302\303\304\305\306\307\310\311\312\313\314\010\315\316&\015\207" [calibredb-helm-map fboundp helm-build-sync-source "calibredb" :header-name #f(compiled-function (name) #<bytecode 0x43e9335d>) :candidates calibredb-candidates :persistent-action calibredb-find-cover :action calibredb-helm-actions :keymap :candidate-number-limit 9999] 14)
  (defvar calibredb-helm-source (byte-code "\301\302!\205\026\0\302\303\304\305\306\307\310\311\312\313\314\010\315\316&\015\207" [calibredb-helm-map fboundp helm-build-sync-source "calibredb" :header-name #f(compiled-function (name) #<bytecode 0x43e9335d>) :candidates calibredb-candidates :persistent-action calibredb-find-cover :action calibredb-helm-actions :keymap :candidate-number-limit 9999] 14) ("/Users/wangtianshu/.emacs.d/elpa/calibredb-20200516.1445/calibredb.elc" . 5383))
  require(calibredb)
  (progn (require (quote calibredb)) (setq sql-sqlite-program "/usr/bin/sqlite3" calibredb-root-dir (expand-file-name "~/Documents/Calibre") calibredb-db-dir (concat calibredb-root-dir "/metadata.db") calibredb-program "/Applications/calibre.app/Contents/MacOS/calibredb") (run-hooks (quote use-package--calibredb--post-init-hook)))
  (if (run-hook-with-args-until-failure (quote use-package--calibredb--pre-init-hook)) (progn (require (quote calibredb)) (setq sql-sqlite-program "/usr/bin/sqlite3" calibredb-root-dir (expand-file-name "~/Documents/Calibre") calibredb-db-dir (concat calibredb-root-dir "/metadata.db") calibredb-program "/Applications/calibre.app/Contents/MacOS/calibredb") (run-hooks (quote use-package--calibredb--post-init-hook))))
  (condition-case err (if (run-hook-with-args-until-failure (quote use-package--calibredb--pre-init-hook)) (progn (require (quote calibredb)) (setq sql-sqlite-program "/usr/bin/sqlite3" calibredb-root-dir (expand-file-name "~/Documents/Calibre") calibredb-db-dir (concat calibredb-root-dir "/metadata.db") calibredb-program "/Applications/calibre.app/Contents/MacOS/calibredb") (run-hooks (quote use-package--calibredb--post-init-hook)))) ((debug error) (funcall use-package--warning115 :init err)))
  (progn (use-package-statistics-gather :init (quote calibredb) nil) (condition-case err (if (run-hook-with-args-until-failure (quote use-package--calibredb--pre-init-hook)) (progn (require (quote calibredb)) (setq sql-sqlite-program "/usr/bin/sqlite3" calibredb-root-dir (expand-file-name "~/Documents/Calibre") calibredb-db-dir (concat calibredb-root-dir "/metadata.db") calibredb-program "/Applications/calibre.app/Contents/MacOS/calibredb") (run-hooks (quote use-package--calibredb--post-init-hook)))) ((debug error) (funcall use-package--warning115 :init err))) (eval-after-load (quote calibredb) (function (lambda nil (progn (use-package-statistics-gather :config (quote calibredb) nil) (use-package-statistics-gather :config (quote calibredb) t))))) (use-package-statistics-gather :init (quote calibredb) t))
  (condition-case err (progn (use-package-statistics-gather :init (quote calibredb) nil) (condition-case err (if (run-hook-with-args-until-failure (quote use-package--calibredb--pre-init-hook)) (progn (require (quote calibredb)) (setq sql-sqlite-program "/usr/bin/sqlite3" calibredb-root-dir (expand-file-name "~/Documents/Calibre") calibredb-db-dir (concat calibredb-root-dir "/metadata.db") calibredb-program "/Applications/calibre.app/Contents/MacOS/calibredb") (run-hooks (quote use-package--calibredb--post-init-hook)))) ((debug error) (funcall use-package--warning115 :init err))) (eval-after-load (quote calibredb) (function (lambda nil (progn (use-package-statistics-gather :config (quote calibredb) nil) (use-package-statistics-gather :config (quote calibredb) t))))) (use-package-statistics-gather :init (quote calibredb) t)) ((debug error) (funcall use-package--warning115 :catch err)))
  eval-buffer(#<buffer  *load*-464687> nil "/Users/wangtianshu/.emacs.d/lisp/editor-misc.el" nil t)  ; Reading at buffer position 1968
  load-with-code-conversion("/Users/wangtianshu/.emacs.d/lisp/editor-misc.el" "/Users/wangtianshu/.emacs.d/lisp/editor-misc.el" nil t)
  require(editor-misc)
  eval-buffer(#<buffer  *load*-265410> nil "/Users/wangtianshu/.emacs.d/init.el" nil t)  ; Reading at buffer position 1915
  load-with-code-conversion("/Users/wangtianshu/.emacs.d/init.el" "/Users/wangtianshu/.emacs.d/init.el" nil nil)
  load("/Users/wangtianshu/.emacs.d/init.el")
  (let* ((emacs-directory (file-name-as-directory (chemacs-emacs-profile-key (quote user-emacs-directory)))) (init-file (expand-file-name "init.el" emacs-directory)) (custom-file- (chemacs-emacs-profile-key (quote custom-file) init-file)) (server-name- (chemacs-emacs-profile-key (quote server-name)))) (setq user-emacs-directory emacs-directory) (if server-name- (progn (setq server-name server-name-))) (mapcar (function (lambda (env) (setenv (car env) (cdr env)))) (chemacs-emacs-profile-key (quote env))) (if (chemacs-emacs-profile-key (quote straight-p)) (progn (chemacs-load-straight))) (load init-file) (if (not custom-file) (progn (setq custom-file custom-file-) (if (equal custom-file init-file) nil (load custom-file)))))
  chemacs-load-profile("default")
  (if args (let ((s (split-string (car args) "="))) (cond ((equal (car args) "--with-profile") (add-to-list (quote command-switch-alist) (quote ("--with-profile" lambda (_) (pop command-line-args-left)))) (chemacs-load-profile (car (cdr args)))) ((equal (car s) "--with-profile") (add-to-list (quote command-switch-alist) (cons (car args) (quote (lambda ...)))) (chemacs-load-profile (mapconcat (quote identity) (cdr s) "="))) (t (chemacs-check-command-line-args (cdr args))))) (chemacs-load-profile (chemacs-detect-default-profile)))
  chemacs-check-command-line-args(nil)
  (cond ((equal (car args) "--with-profile") (add-to-list (quote command-switch-alist) (quote ("--with-profile" lambda (_) (pop command-line-args-left)))) (chemacs-load-profile (car (cdr args)))) ((equal (car s) "--with-profile") (add-to-list (quote command-switch-alist) (cons (car args) (quote (lambda (_))))) (chemacs-load-profile (mapconcat (quote identity) (cdr s) "="))) (t (chemacs-check-command-line-args (cdr args))))
  (let ((s (split-string (car args) "="))) (cond ((equal (car args) "--with-profile") (add-to-list (quote command-switch-alist) (quote ("--with-profile" lambda (_) (pop command-line-args-left)))) (chemacs-load-profile (car (cdr args)))) ((equal (car s) "--with-profile") (add-to-list (quote command-switch-alist) (cons (car args) (quote (lambda (_))))) (chemacs-load-profile (mapconcat (quote identity) (cdr s) "="))) (t (chemacs-check-command-line-args (cdr args)))))
  (if args (let ((s (split-string (car args) "="))) (cond ((equal (car args) "--with-profile") (add-to-list (quote command-switch-alist) (quote ("--with-profile" lambda (_) (pop command-line-args-left)))) (chemacs-load-profile (car (cdr args)))) ((equal (car s) "--with-profile") (add-to-list (quote command-switch-alist) (cons (car args) (quote (lambda ...)))) (chemacs-load-profile (mapconcat (quote identity) (cdr s) "="))) (t (chemacs-check-command-line-args (cdr args))))) (chemacs-load-profile (chemacs-detect-default-profile)))
  chemacs-check-command-line-args(("/usr/local/Cellar/emacs-mac/emacs-26.3-z-mac-7.9/Emacs.app/Contents/MacOS/Emacs"))
  eval-buffer(#<buffer  *load*> nil "/Users/wangtianshu/.emacs" nil t)  ; Reading at buffer position 7021
  load-with-code-conversion("/Users/wangtianshu/.emacs" "/Users/wangtianshu/.emacs" t t)
  load("~/.emacs" t t)
  #f(compiled-function () #<bytecode 0x400ca951>)()
  command-line()
  normal-top-level()
@chenyanming
Copy link
Owner

Actually it is the compilation problem of helm. The solution is to rebuild helm. Check emacs-helm/helm#602

@tshu-w
Copy link
Author

tshu-w commented May 20, 2020

@chenyanming thx for the quick reply. I had tried to delete helm* and reinstall these packages as the link you provide, the issue is still there.

@chenyanming
Copy link
Owner

Would you try rebuild helm? Besides, would you try rebuild calibredb as well?

@tshu-w
Copy link
Author

tshu-w commented May 20, 2020

aha, I rebuild calibredb and this issue disappears. thx for you help.

@tshu-w tshu-w closed this as completed May 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants