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

[Bug/Support]: Installing lispy _sometimes_ fails #399

Closed
2 of 3 tasks
maciej-szlosarczyk opened this issue Jan 8, 2025 · 1 comment
Closed
2 of 3 tasks

[Bug/Support]: Installing lispy _sometimes_ fails #399

maciej-szlosarczyk opened this issue Jan 8, 2025 · 1 comment

Comments

@maciej-szlosarczyk
Copy link

maciej-szlosarczyk commented Jan 8, 2025

Confirmation

  • I have checked the documentation (README, Wiki, docstrings, etc)
  • I am checking these without reading them.
  • I have searched previous issues to see if my question is a duplicate.

Elpaca Version

((elpaca . "92cbdba grafted, HEAD -> master, origin/master, origin/HEAD")
 (installer . 0.8)
 (emacs . "GNU Emacs 29.4 (build 2, aarch64-apple-darwin23.6.0, NS appkit-2487.70 Version 14.7.2 (Build 23H311))
 of 2024-12-16")
 (git . "git version 2.39.5 (Apple Git-154)"))

Operating System

MacOS 14.17.2

Description

Installing lispy sometimes fails (~50% of the time). What's worse, it sometimes also fails to load it on init when the files are obviously built and in place.

It's pretty random, and I wasn't able to reproduce it with small config. Here's what happens with toggle-debug-on-error and the following snippet:

(use-package lispy :ensure t)

Recipe:

lispy
Vi-like Paredit

source: MELPA
url: https://github.com/abo-abo/lispy
menu item recipe:
( :package "lispy"
  :repo "abo-abo/lispy"
  :fetcher github
  :files (:defaults "lispy-clojure.clj"
                    "lispy-clojure.cljs" "lispy-python.py")
  :source "MELPA")
full recipe:
( :package "lispy"
  ;; Inherited from elpaca-order-functions.
  :depth treeless
  :inherit t
  :protocol https
  ;; Inherited from elpaca-menu-item.
  :source "MELPA"
  :files (:defaults "lispy-clojure.clj"
                    "lispy-clojure.cljs" "lispy-python.py")
  :fetcher github
  :repo "abo-abo/lispy")
dependencies:
nil
dependents: nil
statuses:
  (failed reclone ref-checked-out queued)
log:
  [2025-01-08 11:50:26] Package queued
  [2025-01-08 11:50:26] Continued by: elpaca--process
  [2025-01-08 11:50:26] Continued by: elpaca--configure-remotes
  [2025-01-08 11:50:26] Continued by: elpaca--checkout-ref
  [2025-01-08 11:50:26] Continued by: elpaca--dispatch-build-commands
  [2025-01-08 11:50:26] elpaca--queue-dependencies: (error "Unable to find main elisp file for \"lispy\"")

Debugger entered--Lisp error: (error "Unable to find main elisp file for \"lispy\"")
  error("Unable to find main elisp file for %S" "lispy")
  elpaca--main-file((elpaca lispy "lispy" lispy (ref-checked-out queued) "/Users/maciej/.emacs.d/elpaca/repos/lispy/" "/Users/maciej/.emacs.d/elpaca/builds/lispy" nil nil nil (elpaca--check-version elpaca--link-build-files elpaca--generate-autoloads-async elpaca--byte-compile elpaca--compile-info elpaca--install-info elpaca--add-info-path elpaca--run-post-build-commands elpaca--activate-package) (:package "lispy" :repo "abo-abo/lispy" :fetcher github :files (:defaults "lispy-clojure.clj" "lispy-clojure.cljs" "lispy-python.py") :source "MELPA" :protocol https :inherit t :depth treeless) nil nil nil nil 4 (26494 18958 236067 0) nil nil ((ref-checked-out (26494 18958 289098 0) "Continued by: elpaca--dispatch-build-commands" 2) (queued (26494 18958 289084 0) "Continued by: elpaca--checkout-ref" 2) (queued (26494 18958 289074 0) "Continued by: elpaca--configure-remotes" 2) (queued (26494 18958 289061 0) "Continued by: elpaca--process" 2) (queued (26494 18958 236037 0) "Package queued" 1)) nil))
  elpaca--dependencies((elpaca lispy "lispy" lispy (ref-checked-out queued) "/Users/maciej/.emacs.d/elpaca/repos/lispy/" "/Users/maciej/.emacs.d/elpaca/builds/lispy" nil nil nil (elpaca--check-version elpaca--link-build-files elpaca--generate-autoloads-async elpaca--byte-compile elpaca--compile-info elpaca--install-info elpaca--add-info-path elpaca--run-post-build-commands elpaca--activate-package) (:package "lispy" :repo "abo-abo/lispy" :fetcher github :files (:defaults "lispy-clojure.clj" "lispy-clojure.cljs" "lispy-python.py") :source "MELPA" :protocol https :inherit t :depth treeless) nil nil nil nil 4 (26494 18958 236067 0) nil nil ((ref-checked-out (26494 18958 289098 0) "Continued by: elpaca--dispatch-build-commands" 2) (queued (26494 18958 289084 0) "Continued by: elpaca--checkout-ref" 2) (queued (26494 18958 289074 0) "Continued by: elpaca--configure-remotes" 2) (queued (26494 18958 289061 0) "Continued by: elpaca--process" 2) (queued (26494 18958 236037 0) "Package queued" 1)) nil))
  elpaca--queue-dependencies((elpaca lispy "lispy" lispy (ref-checked-out queued) "/Users/maciej/.emacs.d/elpaca/repos/lispy/" "/Users/maciej/.emacs.d/elpaca/builds/lispy" nil nil nil (elpaca--check-version elpaca--link-build-files elpaca--generate-autoloads-async elpaca--byte-compile elpaca--compile-info elpaca--install-info elpaca--add-info-path elpaca--run-post-build-commands elpaca--activate-package) (:package "lispy" :repo "abo-abo/lispy" :fetcher github :files (:defaults "lispy-clojure.clj" "lispy-clojure.cljs" "lispy-python.py") :source "MELPA" :protocol https :inherit t :depth treeless) nil nil nil nil 4 (26494 18958 236067 0) nil nil ((ref-checked-out (26494 18958 289098 0) "Continued by: elpaca--dispatch-build-commands" 2) (queued (26494 18958 289084 0) "Continued by: elpaca--checkout-ref" 2) (queued (26494 18958 289074 0) "Continued by: elpaca--configure-remotes" 2) (queued (26494 18958 289061 0) "Continued by: elpaca--process" 2) (queued (26494 18958 236037 0) "Package queued" 1)) nil))
  elpaca--continue-build((elpaca lispy "lispy" lispy (ref-checked-out queued) "/Users/maciej/.emacs.d/elpaca/repos/lispy/" "/Users/maciej/.emacs.d/elpaca/builds/lispy" nil nil nil (elpaca--check-version elpaca--link-build-files elpaca--generate-autoloads-async elpaca--byte-compile elpaca--compile-info elpaca--install-info elpaca--add-info-path elpaca--run-post-build-commands elpaca--activate-package) (:package "lispy" :repo "abo-abo/lispy" :fetcher github :files (:defaults "lispy-clojure.clj" "lispy-clojure.cljs" "lispy-python.py") :source "MELPA" :protocol https :inherit t :depth treeless) nil nil nil nil 4 (26494 18958 236067 0) nil nil ((ref-checked-out (26494 18958 289098 0) "Continued by: elpaca--dispatch-build-commands" 2) (queued (26494 18958 289084 0) "Continued by: elpaca--checkout-ref" 2) (queued (26494 18958 289074 0) "Continued by: elpaca--configure-remotes" 2) (queued (26494 18958 289061 0) "Continued by: elpaca--process" 2) (queued (26494 18958 236037 0) "Package queued" 1)) nil))
  elpaca--dispatch-build-commands((elpaca lispy "lispy" lispy (ref-checked-out queued) "/Users/maciej/.emacs.d/elpaca/repos/lispy/" "/Users/maciej/.emacs.d/elpaca/builds/lispy" nil nil nil (elpaca--check-version elpaca--link-build-files elpaca--generate-autoloads-async elpaca--byte-compile elpaca--compile-info elpaca--install-info elpaca--add-info-path elpaca--run-post-build-commands elpaca--activate-package) (:package "lispy" :repo "abo-abo/lispy" :fetcher github :files (:defaults "lispy-clojure.clj" "lispy-clojure.cljs" "lispy-python.py") :source "MELPA" :protocol https :inherit t :depth treeless) nil nil nil nil 4 (26494 18958 236067 0) nil nil ((ref-checked-out (26494 18958 289098 0) "Continued by: elpaca--dispatch-build-commands" 2) (queued (26494 18958 289084 0) "Continued by: elpaca--checkout-ref" 2) (queued (26494 18958 289074 0) "Continued by: elpaca--configure-remotes" 2) (queued (26494 18958 289061 0) "Continued by: elpaca--process" 2) (queued (26494 18958 236037 0) "Package queued" 1)) nil) :pre-build)
  elpaca--run-pre-build-commands((elpaca lispy "lispy" lispy (ref-checked-out queued) "/Users/maciej/.emacs.d/elpaca/repos/lispy/" "/Users/maciej/.emacs.d/elpaca/builds/lispy" nil nil nil (elpaca--check-version elpaca--link-build-files elpaca--generate-autoloads-async elpaca--byte-compile elpaca--compile-info elpaca--install-info elpaca--add-info-path elpaca--run-post-build-commands elpaca--activate-package) (:package "lispy" :repo "abo-abo/lispy" :fetcher github :files (:defaults "lispy-clojure.clj" "lispy-clojure.cljs" "lispy-python.py") :source "MELPA" :protocol https :inherit t :depth treeless) nil nil nil nil 4 (26494 18958 236067 0) nil nil ((ref-checked-out (26494 18958 289098 0) "Continued by: elpaca--dispatch-build-commands" 2) (queued (26494 18958 289084 0) "Continued by: elpaca--checkout-ref" 2) (queued (26494 18958 289074 0) "Continued by: elpaca--configure-remotes" 2) (queued (26494 18958 289061 0) "Continued by: elpaca--process" 2) (queued (26494 18958 236037 0) "Package queued" 1)) nil))
  elpaca--continue-build((elpaca lispy "lispy" lispy (ref-checked-out queued) "/Users/maciej/.emacs.d/elpaca/repos/lispy/" "/Users/maciej/.emacs.d/elpaca/builds/lispy" nil nil nil (elpaca--check-version elpaca--link-build-files elpaca--generate-autoloads-async elpaca--byte-compile elpaca--compile-info elpaca--install-info elpaca--add-info-path elpaca--run-post-build-commands elpaca--activate-package) (:package "lispy" :repo "abo-abo/lispy" :fetcher github :files (:defaults "lispy-clojure.clj" "lispy-clojure.cljs" "lispy-python.py") :source "MELPA" :protocol https :inherit t :depth treeless) nil nil nil nil 4 (26494 18958 236067 0) nil nil ((ref-checked-out (26494 18958 289098 0) "Continued by: elpaca--dispatch-build-commands" 2) (queued (26494 18958 289084 0) "Continued by: elpaca--checkout-ref" 2) (queued (26494 18958 289074 0) "Continued by: elpaca--configure-remotes" 2) (queued (26494 18958 289061 0) "Continued by: elpaca--process" 2) (queued (26494 18958 236037 0) "Package queued" 1)) nil) nil ref-checked-out)
  elpaca--checkout-ref((elpaca lispy "lispy" lispy (ref-checked-out queued) "/Users/maciej/.emacs.d/elpaca/repos/lispy/" "/Users/maciej/.emacs.d/elpaca/builds/lispy" nil nil nil (elpaca--check-version elpaca--link-build-files elpaca--generate-autoloads-async elpaca--byte-compile elpaca--compile-info elpaca--install-info elpaca--add-info-path elpaca--run-post-build-commands elpaca--activate-package) (:package "lispy" :repo "abo-abo/lispy" :fetcher github :files (:defaults "lispy-clojure.clj" "lispy-clojure.cljs" "lispy-python.py") :source "MELPA" :protocol https :inherit t :depth treeless) nil nil nil nil 4 (26494 18958 236067 0) nil nil ((ref-checked-out (26494 18958 289098 0) "Continued by: elpaca--dispatch-build-commands" 2) (queued (26494 18958 289084 0) "Continued by: elpaca--checkout-ref" 2) (queued (26494 18958 289074 0) "Continued by: elpaca--configure-remotes" 2) (queued (26494 18958 289061 0) "Continued by: elpaca--process" 2) (queued (26494 18958 236037 0) "Package queued" 1)) nil))
  elpaca--continue-build((elpaca lispy "lispy" lispy (ref-checked-out queued) "/Users/maciej/.emacs.d/elpaca/repos/lispy/" "/Users/maciej/.emacs.d/elpaca/builds/lispy" nil nil nil (elpaca--check-version elpaca--link-build-files elpaca--generate-autoloads-async elpaca--byte-compile elpaca--compile-info elpaca--install-info elpaca--add-info-path elpaca--run-post-build-commands elpaca--activate-package) (:package "lispy" :repo "abo-abo/lispy" :fetcher github :files (:defaults "lispy-clojure.clj" "lispy-clojure.cljs" "lispy-python.py") :source "MELPA" :protocol https :inherit t :depth treeless) nil nil nil nil 4 (26494 18958 236067 0) nil nil ((ref-checked-out (26494 18958 289098 0) "Continued by: elpaca--dispatch-build-commands" 2) (queued (26494 18958 289084 0) "Continued by: elpaca--checkout-ref" 2) (queued (26494 18958 289074 0) "Continued by: elpaca--configure-remotes" 2) (queued (26494 18958 289061 0) "Continued by: elpaca--process" 2) (queued (26494 18958 236037 0) "Package queued" 1)) nil))
  elpaca--configure-remotes((elpaca lispy "lispy" lispy (ref-checked-out queued) "/Users/maciej/.emacs.d/elpaca/repos/lispy/" "/Users/maciej/.emacs.d/elpaca/builds/lispy" nil nil nil (elpaca--check-version elpaca--link-build-files elpaca--generate-autoloads-async elpaca--byte-compile elpaca--compile-info elpaca--install-info elpaca--add-info-path elpaca--run-post-build-commands elpaca--activate-package) (:package "lispy" :repo "abo-abo/lispy" :fetcher github :files (:defaults "lispy-clojure.clj" "lispy-clojure.cljs" "lispy-python.py") :source "MELPA" :protocol https :inherit t :depth treeless) nil nil nil nil 4 (26494 18958 236067 0) nil nil ((ref-checked-out (26494 18958 289098 0) "Continued by: elpaca--dispatch-build-commands" 2) (queued (26494 18958 289084 0) "Continued by: elpaca--checkout-ref" 2) (queued (26494 18958 289074 0) "Continued by: elpaca--configure-remotes" 2) (queued (26494 18958 289061 0) "Continued by: elpaca--process" 2) (queued (26494 18958 236037 0) "Package queued" 1)) nil))
  elpaca--continue-build((elpaca lispy "lispy" lispy (ref-checked-out queued) "/Users/maciej/.emacs.d/elpaca/repos/lispy/" "/Users/maciej/.emacs.d/elpaca/builds/lispy" nil nil nil (elpaca--check-version elpaca--link-build-files elpaca--generate-autoloads-async elpaca--byte-compile elpaca--compile-info elpaca--install-info elpaca--add-info-path elpaca--run-post-build-commands elpaca--activate-package) (:package "lispy" :repo "abo-abo/lispy" :fetcher github :files (:defaults "lispy-clojure.clj" "lispy-clojure.cljs" "lispy-python.py") :source "MELPA" :protocol https :inherit t :depth treeless) nil nil nil nil 4 (26494 18958 236067 0) nil nil ((ref-checked-out (26494 18958 289098 0) "Continued by: elpaca--dispatch-build-commands" 2) (queued (26494 18958 289084 0) "Continued by: elpaca--checkout-ref" 2) (queued (26494 18958 289074 0) "Continued by: elpaca--configure-remotes" 2) (queued (26494 18958 289061 0) "Continued by: elpaca--process" 2) (queued (26494 18958 236037 0) "Package queued" 1)) nil))
  elpaca--process((elpaca lispy "lispy" lispy (ref-checked-out queued) "/Users/maciej/.emacs.d/elpaca/repos/lispy/" "/Users/maciej/.emacs.d/elpaca/builds/lispy" nil nil nil (elpaca--check-version elpaca--link-build-files elpaca--generate-autoloads-async elpaca--byte-compile elpaca--compile-info elpaca--install-info elpaca--add-info-path elpaca--run-post-build-commands elpaca--activate-package) (:package "lispy" :repo "abo-abo/lispy" :fetcher github :files (:defaults "lispy-clojure.clj" "lispy-clojure.cljs" "lispy-python.py") :source "MELPA" :protocol https :inherit t :depth treeless) nil nil nil nil 4 (26494 18958 236067 0) nil nil ((ref-checked-out (26494 18958 289098 0) "Continued by: elpaca--dispatch-build-commands" 2) (queued (26494 18958 289084 0) "Continued by: elpaca--checkout-ref" 2) (queued (26494 18958 289074 0) "Continued by: elpaca--configure-remotes" 2) (queued (26494 18958 289061 0) "Continued by: elpaca--process" 2) (queued (26494 18958 236037 0) "Package queued" 1)) nil))
  elpaca--process-queue((elpaca-q nil 4 0 incomplete (26494 18285 643232 0) nil ((lispy (defvar use-package--warning157 #'(lambda (keyword err) (let ... ...))) (condition-case-unless-debug err (progn (use-package-statistics-gather :init 'lispy nil) (let (...) (message "%s..." "Loading package lispy") (prog1 ... ...)) (use-package-statistics-gather :init 'lispy t)) (error (funcall use-package--warning157 :catch err))))) ((lispy elpaca lispy "lispy" lispy (ref-checked-out queued) "/Users/maciej/.emacs.d/elpaca/repos/lispy/" "/Users/maciej/.emacs.d/elpaca/builds/lispy" nil nil nil (elpaca--check-version elpaca--link-build-files elpaca--generate-autoloads-async elpaca--byte-compile elpaca--compile-info elpaca--install-info elpaca--add-info-path elpaca--run-post-build-commands elpaca--activate-package) (:package "lispy" :repo "abo-abo/lispy" :fetcher github :files (:defaults "lispy-clojure.clj" "lispy-clojure.cljs" "lispy-python.py") :source "MELPA" :protocol https :inherit t :depth treeless) nil nil nil nil 4 (26494 18958 236067 0) nil nil ((ref-checked-out (26494 18958 289098 0) "Continued by: elpaca--dispatch-build-commands" 2) (queued (26494 18958 289084 0) "Continued by: elpaca--checkout-ref" 2) (queued (26494 18958 289074 0) "Continued by: elpaca--configure-remotes" 2) (queued (26494 18958 289061 0) "Continued by: elpaca--process" 2) (queued (26494 18958 236037 0) "Package queued" 1)) nil))))
  elpaca-process-queues()
  apply(elpaca-process-queues nil)
  timer-event-handler([t 26494 18958 286070 nil elpaca-process-queues nil nil 0 nil])

Anything in particular I should look at?

@maciej-szlosarczyk
Copy link
Author

I think I figured out what was the problem.

The elpaca/repos/lispy folder was being emptied periodically, it had the .git contents but nothing else. I checked the right commit in command line manually and the problem disappeared since then. I'll see if it reappears again, but for now closing the issue.

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

1 participant