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

Emacs stuck in failed state after straight-pull-recipe-repositories #1089

Open
dadinn opened this issue May 18, 2023 · 19 comments
Open

Emacs stuck in failed state after straight-pull-recipe-repositories #1089

dadinn opened this issue May 18, 2023 · 19 comments

Comments

@dadinn
Copy link

dadinn commented May 18, 2023

What's wrong

I've tried to install vertico-prescient package, which fails, and the error recommended that I update my straight repos using straight-pull-recipe-repositories. When I did this, and restarted Emacs, it failed to load and finish init. I've not even got to trying to install vertico-prescient itself.

The error (with stacktrace) when starting Emacs with --debug-init:

Debugger entered--Lisp error: (wrong-type-argument stringp afternoon-theme)
  intern(afternoon-theme)
  #f(compiled-function (it) #<bytecode 0x15706da99381>)((afternoon-theme :url "https://github.com/osener/emacs-afternoon-theme" :ignored-files ("*.png")))
  cl--position(emacsmirror-mirror ((afternoon-theme :url "https://github.com/osener/emacs-afternoon-th..." :ignored-files ("*.png")) (alect-themes :url "https://github.com/alezost/alect-themes" :ignored-files ("LICENSE" "tests" "Makefile" "colors")) (ample-theme :url "https://github.com/jordonbiondo/ample-theme") (annotate :url "https://github.com/bastibe/annotate.el" :news "NEWS.org" :readme "README.org") (anti-zenburn-theme :url "https://github.com/m00natic/anti-zenburn-the..." :ignored-files ("anti-zenburn-snapshot.jpeg")) (anzu :url "https://github.com/emacsorphanage/anzu.git" :readme "README.md" :news "Changes" :ignored-files (".github" "image" "Cask" "Makefile")) (apache-mode :url "https://github.com/emacs-php/apache-mode" :ignored-files ("LICENSE")) (apropospriate-theme :url "https://github.com/waymondo/apropospriate-th..." :ignored-files ("*.png")) (arduino-mode :url "https://repo.or.cz/arduino-mode.git" :ignored-files ("Cask")) (auto-dim-other-buffers :url "https://github.com/mina86/auto-dim-other-buf..." :readme "README.md" :ignored-files ("LICENSE" "screenshot.gif")) (autothemer :url "https://github.com/jasonm23/autothemer.git" :readme "README.md") (bash-completion :url "https://github.com/szermatt/emacs-bash-compl..." :readme "README.md") (better-jumper :url "https://github.com/gilbertw1/better-jumper.g..." :readme "Readme.md" :ignored-files ("LICENSE")) (bind-map :url "https://github.com/justbur/emacs-bind-map.gi..." :ignored-files (".travis.yml" "Cask" "LICENSE")) (bison-mode :url "https://github.com/Wilfred/bison-mode") (blow :url "https://codeberg.org/akib/emacs-blow") (boxquote :url "https://github.com/davep/boxquote.el.git" :readme "README.md" :ignored-files ("COPYING")) (buttercup :url "https://github.com/jorgenschaefer/emacs-butt..." :ignored-files ("LICENSE")) (camera :url "https://codeberg.org/akib/emacs-camera") (caml :url "https://github.com/ocaml/caml-mode" :ignored-files ("COPYING")) (cdlatex :url "https://github.com/cdominik/cdlatex") (cider :url "https://github.com/clojure-emacs/cider" :ignored-files ("LICENSE" "doc" "logo" "refcard" "test") :news "CHANGELOG.md") (clojure-mode :url "https://github.com/clojure-emacs/clojure-mod..." :ignored-files ("clojure-mode-extra-font-locking.el" "doc" "test" "test.clj") :news "CHANGELOG.md") (coffee-mode :url "https://github.com/defunkt/coffee-mode") (corfu-terminal :url "https://codeberg.org/akib/emacs-corfu-termin...") (crux :url "https://github.com/bbatsov/crux" :readme "README.md" :news "CHANGELOG.md") (cyberpunk-theme :url "https://github.com/n3mo/cyberpunk-theme.el" :ignored-files ("cyberpunk-theme.png" "example-org-file.org")) (cycle-at-point :url "https://codeberg.org/ideasman42/emacs-cycle-..." :ignored-files (".elisp-autofmt" "LICENSE" "tests")) (d-mode :url "https://github.com/Emacs-D-Mode-Maintainers/..." :ignored-files ("COPYING" "coverage" "tests-todo" "tests" "Cask" "Makefile" "d-mode-tests.el")) (dart-mode :url "https://github.com/bradyt/dart-mode" :ignored-files ("LICENSE" "test" "Cask" "Makefile") :news "CHANGELOG.md") (denote-refs :url "https://codeberg.org/akib/emacs-denote-refs") (devhelp :url "https://codeberg.org/akib/emacs-devhelp") (devil :url "https://github.com/susam/devil" :readme "README.org" :news "CHANGES.org") (diff-ansi :url "https://codeberg.org/ideasman42/emacs-diff-a..." :ignored-files ("LICENSE")) (doc-show-inline :url "https://codeberg.org/ideasman42/emacs-doc-sh..." :news "changelog.rst") (dockerfile-mode :url "https://github.com/spotify/dockerfile-mode") (dracula-theme :url "https://github.com/dracula/emacs" :ignored-files ("INSTALL.md" "screenshot.png" "start_emacs_test.sh" "test-profile.el")) (drupal-mode :url "https://github.com/arnested/drupal-mode.git" :ignored-files (".travis.yml" "COPYING" "Cask")) (eat :url "https://codeberg.org/akib/emacs-eat" :doc "eat.texi") (edit-indirect :url "https://github.com/Fanael/edit-indirect") (editorconfig :url "https://github.com/editorconfig/editorconfig..." :doc "doc/editorconfig.texi" :news "CHANGELOG.md" :ignored-files ("LICENSE" "bin" "ert-tests")) (elixir-mode :url "https://github.com/elixir-editors/emacs-elix..." :ignored-files ("tests" "Eldev") :news "CHANGELOG.md") (elpher :url "git://thelambdalab.xyz/elpher.git" :doc "elpher.texi" :ignored-files ("Makefile" "ISSUES.org" "RELEASE" "config.mk")) (emacsql :url "https://github.com/magit/emacsql" :readme "README.md" :ignored-files (".github" "Makefile" "tests")) ...) 0 nil nil)
  cl-position(emacsmirror-mirror ((afternoon-theme :url "https://github.com/osener/emacs-afternoon-th..." :ignored-files ("*.png")) (alect-themes :url "https://github.com/alezost/alect-themes" :ignored-files ("LICENSE" "tests" "Makefile" "colors")) (ample-theme :url "https://github.com/jordonbiondo/ample-theme") (annotate :url "https://github.com/bastibe/annotate.el" :news "NEWS.org" :readme "README.org") (anti-zenburn-theme :url "https://github.com/m00natic/anti-zenburn-the..." :ignored-files ("anti-zenburn-snapshot.jpeg")) (anzu :url "https://github.com/emacsorphanage/anzu.git" :readme "README.md" :news "Changes" :ignored-files (".github" "image" "Cask" "Makefile")) (apache-mode :url "https://github.com/emacs-php/apache-mode" :ignored-files ("LICENSE")) (apropospriate-theme :url "https://github.com/waymondo/apropospriate-th..." :ignored-files ("*.png")) (arduino-mode :url "https://repo.or.cz/arduino-mode.git" :ignored-files ("Cask")) (auto-dim-other-buffers :url "https://github.com/mina86/auto-dim-other-buf..." :readme "README.md" :ignored-files ("LICENSE" "screenshot.gif")) (autothemer :url "https://github.com/jasonm23/autothemer.git" :readme "README.md") (bash-completion :url "https://github.com/szermatt/emacs-bash-compl..." :readme "README.md") (better-jumper :url "https://github.com/gilbertw1/better-jumper.g..." :readme "Readme.md" :ignored-files ("LICENSE")) (bind-map :url "https://github.com/justbur/emacs-bind-map.gi..." :ignored-files (".travis.yml" "Cask" "LICENSE")) (bison-mode :url "https://github.com/Wilfred/bison-mode") (blow :url "https://codeberg.org/akib/emacs-blow") (boxquote :url "https://github.com/davep/boxquote.el.git" :readme "README.md" :ignored-files ("COPYING")) (buttercup :url "https://github.com/jorgenschaefer/emacs-butt..." :ignored-files ("LICENSE")) (camera :url "https://codeberg.org/akib/emacs-camera") (caml :url "https://github.com/ocaml/caml-mode" :ignored-files ("COPYING")) (cdlatex :url "https://github.com/cdominik/cdlatex") (cider :url "https://github.com/clojure-emacs/cider" :ignored-files ("LICENSE" "doc" "logo" "refcard" "test") :news "CHANGELOG.md") (clojure-mode :url "https://github.com/clojure-emacs/clojure-mod..." :ignored-files ("clojure-mode-extra-font-locking.el" "doc" "test" "test.clj") :news "CHANGELOG.md") (coffee-mode :url "https://github.com/defunkt/coffee-mode") (corfu-terminal :url "https://codeberg.org/akib/emacs-corfu-termin...") (crux :url "https://github.com/bbatsov/crux" :readme "README.md" :news "CHANGELOG.md") (cyberpunk-theme :url "https://github.com/n3mo/cyberpunk-theme.el" :ignored-files ("cyberpunk-theme.png" "example-org-file.org")) (cycle-at-point :url "https://codeberg.org/ideasman42/emacs-cycle-..." :ignored-files (".elisp-autofmt" "LICENSE" "tests")) (d-mode :url "https://github.com/Emacs-D-Mode-Maintainers/..." :ignored-files ("COPYING" "coverage" "tests-todo" "tests" "Cask" "Makefile" "d-mode-tests.el")) (dart-mode :url "https://github.com/bradyt/dart-mode" :ignored-files ("LICENSE" "test" "Cask" "Makefile") :news "CHANGELOG.md") (denote-refs :url "https://codeberg.org/akib/emacs-denote-refs") (devhelp :url "https://codeberg.org/akib/emacs-devhelp") (devil :url "https://github.com/susam/devil" :readme "README.org" :news "CHANGES.org") (diff-ansi :url "https://codeberg.org/ideasman42/emacs-diff-a..." :ignored-files ("LICENSE")) (doc-show-inline :url "https://codeberg.org/ideasman42/emacs-doc-sh..." :news "changelog.rst") (dockerfile-mode :url "https://github.com/spotify/dockerfile-mode") (dracula-theme :url "https://github.com/dracula/emacs" :ignored-files ("INSTALL.md" "screenshot.png" "start_emacs_test.sh" "test-profile.el")) (drupal-mode :url "https://github.com/arnested/drupal-mode.git" :ignored-files (".travis.yml" "COPYING" "Cask")) (eat :url "https://codeberg.org/akib/emacs-eat" :doc "eat.texi") (edit-indirect :url "https://github.com/Fanael/edit-indirect") (editorconfig :url "https://github.com/editorconfig/editorconfig..." :doc "doc/editorconfig.texi" :news "CHANGELOG.md" :ignored-files ("LICENSE" "bin" "ert-tests")) (elixir-mode :url "https://github.com/elixir-editors/emacs-elix..." :ignored-files ("tests" "Eldev") :news "CHANGELOG.md") (elpher :url "git://thelambdalab.xyz/elpher.git" :doc "elpher.texi" :ignored-files ("Makefile" "ISSUES.org" "RELEASE" "config.mk")) (emacsql :url "https://github.com/magit/emacsql" :readme "README.md" :ignored-files (".github" "Makefile" "tests")) ...) :key #f(compiled-function (it) #<bytecode 0x15706da99381>))
  apply(cl-position emacsmirror-mirror ((afternoon-theme :url "https://github.com/osener/emacs-afternoon-th..." :ignored-files ("*.png")) (alect-themes :url "https://github.com/alezost/alect-themes" :ignored-files ("LICENSE" "tests" "Makefile" "colors")) (ample-theme :url "https://github.com/jordonbiondo/ample-theme") (annotate :url "https://github.com/bastibe/annotate.el" :news "NEWS.org" :readme "README.org") (anti-zenburn-theme :url "https://github.com/m00natic/anti-zenburn-the..." :ignored-files ("anti-zenburn-snapshot.jpeg")) (anzu :url "https://github.com/emacsorphanage/anzu.git" :readme "README.md" :news "Changes" :ignored-files (".github" "image" "Cask" "Makefile")) (apache-mode :url "https://github.com/emacs-php/apache-mode" :ignored-files ("LICENSE")) (apropospriate-theme :url "https://github.com/waymondo/apropospriate-th..." :ignored-files ("*.png")) (arduino-mode :url "https://repo.or.cz/arduino-mode.git" :ignored-files ("Cask")) (auto-dim-other-buffers :url "https://github.com/mina86/auto-dim-other-buf..." :readme "README.md" :ignored-files ("LICENSE" "screenshot.gif")) (autothemer :url "https://github.com/jasonm23/autothemer.git" :readme "README.md") (bash-completion :url "https://github.com/szermatt/emacs-bash-compl..." :readme "README.md") (better-jumper :url "https://github.com/gilbertw1/better-jumper.g..." :readme "Readme.md" :ignored-files ("LICENSE")) (bind-map :url "https://github.com/justbur/emacs-bind-map.gi..." :ignored-files (".travis.yml" "Cask" "LICENSE")) (bison-mode :url "https://github.com/Wilfred/bison-mode") (blow :url "https://codeberg.org/akib/emacs-blow") (boxquote :url "https://github.com/davep/boxquote.el.git" :readme "README.md" :ignored-files ("COPYING")) (buttercup :url "https://github.com/jorgenschaefer/emacs-butt..." :ignored-files ("LICENSE")) (camera :url "https://codeberg.org/akib/emacs-camera") (caml :url "https://github.com/ocaml/caml-mode" :ignored-files ("COPYING")) (cdlatex :url "https://github.com/cdominik/cdlatex") (cider :url "https://github.com/clojure-emacs/cider" :ignored-files ("LICENSE" "doc" "logo" "refcard" "test") :news "CHANGELOG.md") (clojure-mode :url "https://github.com/clojure-emacs/clojure-mod..." :ignored-files ("clojure-mode-extra-font-locking.el" "doc" "test" "test.clj") :news "CHANGELOG.md") (coffee-mode :url "https://github.com/defunkt/coffee-mode") (corfu-terminal :url "https://codeberg.org/akib/emacs-corfu-termin...") (crux :url "https://github.com/bbatsov/crux" :readme "README.md" :news "CHANGELOG.md") (cyberpunk-theme :url "https://github.com/n3mo/cyberpunk-theme.el" :ignored-files ("cyberpunk-theme.png" "example-org-file.org")) (cycle-at-point :url "https://codeberg.org/ideasman42/emacs-cycle-..." :ignored-files (".elisp-autofmt" "LICENSE" "tests")) (d-mode :url "https://github.com/Emacs-D-Mode-Maintainers/..." :ignored-files ("COPYING" "coverage" "tests-todo" "tests" "Cask" "Makefile" "d-mode-tests.el")) (dart-mode :url "https://github.com/bradyt/dart-mode" :ignored-files ("LICENSE" "test" "Cask" "Makefile") :news "CHANGELOG.md") (denote-refs :url "https://codeberg.org/akib/emacs-denote-refs") (devhelp :url "https://codeberg.org/akib/emacs-devhelp") (devil :url "https://github.com/susam/devil" :readme "README.org" :news "CHANGES.org") (diff-ansi :url "https://codeberg.org/ideasman42/emacs-diff-a..." :ignored-files ("LICENSE")) (doc-show-inline :url "https://codeberg.org/ideasman42/emacs-doc-sh..." :news "changelog.rst") (dockerfile-mode :url "https://github.com/spotify/dockerfile-mode") (dracula-theme :url "https://github.com/dracula/emacs" :ignored-files ("INSTALL.md" "screenshot.png" "start_emacs_test.sh" "test-profile.el")) (drupal-mode :url "https://github.com/arnested/drupal-mode.git" :ignored-files (".travis.yml" "COPYING" "Cask")) (eat :url "https://codeberg.org/akib/emacs-eat" :doc "eat.texi") (edit-indirect :url "https://github.com/Fanael/edit-indirect") (editorconfig :url "https://github.com/editorconfig/editorconfig..." :doc "doc/editorconfig.texi" :news "CHANGELOG.md" :ignored-files ("LICENSE" "bin" "ert-tests")) (elixir-mode :url "https://github.com/elixir-editors/emacs-elix..." :ignored-files ("tests" "Eldev") :news "CHANGELOG.md") (elpher :url "git://thelambdalab.xyz/elpher.git" :doc "elpher.texi" :ignored-files ("Makefile" "ISSUES.org" "RELEASE" "config.mk")) (emacsql :url "https://github.com/magit/emacsql" :readme "README.md" :ignored-files (".github" "Makefile" "tests")) ...) (:key #f(compiled-function (it) #<bytecode 0x15706da99381>)))
  cl-find(emacsmirror-mirror ((afternoon-theme :url "https://github.com/osener/emacs-afternoon-th..." :ignored-files ("*.png")) (alect-themes :url "https://github.com/alezost/alect-themes" :ignored-files ("LICENSE" "tests" "Makefile" "colors")) (ample-theme :url "https://github.com/jordonbiondo/ample-theme") (annotate :url "https://github.com/bastibe/annotate.el" :news "NEWS.org" :readme "README.org") (anti-zenburn-theme :url "https://github.com/m00natic/anti-zenburn-the..." :ignored-files ("anti-zenburn-snapshot.jpeg")) (anzu :url "https://github.com/emacsorphanage/anzu.git" :readme "README.md" :news "Changes" :ignored-files (".github" "image" "Cask" "Makefile")) (apache-mode :url "https://github.com/emacs-php/apache-mode" :ignored-files ("LICENSE")) (apropospriate-theme :url "https://github.com/waymondo/apropospriate-th..." :ignored-files ("*.png")) (arduino-mode :url "https://repo.or.cz/arduino-mode.git" :ignored-files ("Cask")) (auto-dim-other-buffers :url "https://github.com/mina86/auto-dim-other-buf..." :readme "README.md" :ignored-files ("LICENSE" "screenshot.gif")) (autothemer :url "https://github.com/jasonm23/autothemer.git" :readme "README.md") (bash-completion :url "https://github.com/szermatt/emacs-bash-compl..." :readme "README.md") (better-jumper :url "https://github.com/gilbertw1/better-jumper.g..." :readme "Readme.md" :ignored-files ("LICENSE")) (bind-map :url "https://github.com/justbur/emacs-bind-map.gi..." :ignored-files (".travis.yml" "Cask" "LICENSE")) (bison-mode :url "https://github.com/Wilfred/bison-mode") (blow :url "https://codeberg.org/akib/emacs-blow") (boxquote :url "https://github.com/davep/boxquote.el.git" :readme "README.md" :ignored-files ("COPYING")) (buttercup :url "https://github.com/jorgenschaefer/emacs-butt..." :ignored-files ("LICENSE")) (camera :url "https://codeberg.org/akib/emacs-camera") (caml :url "https://github.com/ocaml/caml-mode" :ignored-files ("COPYING")) (cdlatex :url "https://github.com/cdominik/cdlatex") (cider :url "https://github.com/clojure-emacs/cider" :ignored-files ("LICENSE" "doc" "logo" "refcard" "test") :news "CHANGELOG.md") (clojure-mode :url "https://github.com/clojure-emacs/clojure-mod..." :ignored-files ("clojure-mode-extra-font-locking.el" "doc" "test" "test.clj") :news "CHANGELOG.md") (coffee-mode :url "https://github.com/defunkt/coffee-mode") (corfu-terminal :url "https://codeberg.org/akib/emacs-corfu-termin...") (crux :url "https://github.com/bbatsov/crux" :readme "README.md" :news "CHANGELOG.md") (cyberpunk-theme :url "https://github.com/n3mo/cyberpunk-theme.el" :ignored-files ("cyberpunk-theme.png" "example-org-file.org")) (cycle-at-point :url "https://codeberg.org/ideasman42/emacs-cycle-..." :ignored-files (".elisp-autofmt" "LICENSE" "tests")) (d-mode :url "https://github.com/Emacs-D-Mode-Maintainers/..." :ignored-files ("COPYING" "coverage" "tests-todo" "tests" "Cask" "Makefile" "d-mode-tests.el")) (dart-mode :url "https://github.com/bradyt/dart-mode" :ignored-files ("LICENSE" "test" "Cask" "Makefile") :news "CHANGELOG.md") (denote-refs :url "https://codeberg.org/akib/emacs-denote-refs") (devhelp :url "https://codeberg.org/akib/emacs-devhelp") (devil :url "https://github.com/susam/devil" :readme "README.org" :news "CHANGES.org") (diff-ansi :url "https://codeberg.org/ideasman42/emacs-diff-a..." :ignored-files ("LICENSE")) (doc-show-inline :url "https://codeberg.org/ideasman42/emacs-doc-sh..." :news "changelog.rst") (dockerfile-mode :url "https://github.com/spotify/dockerfile-mode") (dracula-theme :url "https://github.com/dracula/emacs" :ignored-files ("INSTALL.md" "screenshot.png" "start_emacs_test.sh" "test-profile.el")) (drupal-mode :url "https://github.com/arnested/drupal-mode.git" :ignored-files (".travis.yml" "COPYING" "Cask")) (eat :url "https://codeberg.org/akib/emacs-eat" :doc "eat.texi") (edit-indirect :url "https://github.com/Fanael/edit-indirect") (editorconfig :url "https://github.com/editorconfig/editorconfig..." :doc "doc/editorconfig.texi" :news "CHANGELOG.md" :ignored-files ("LICENSE" "bin" "ert-tests")) (elixir-mode :url "https://github.com/elixir-editors/emacs-elix..." :ignored-files ("tests" "Eldev") :news "CHANGELOG.md") (elpher :url "git://thelambdalab.xyz/elpher.git" :doc "elpher.texi" :ignored-files ("Makefile" "ISSUES.org" "RELEASE" "config.mk")) (emacsql :url "https://github.com/magit/emacsql" :readme "README.md" :ignored-files (".github" "Makefile" "tests")) ...) :key #f(compiled-function (it) #<bytecode 0x15706da99381>))
  straight-recipes-nongnu-elpa-retrieve(emacsmirror-mirror)
  apply(straight-recipes-nongnu-elpa-retrieve emacsmirror-mirror)
  straight-recipes(retrieve nongnu-elpa "Looking for emacsmirror-mirror recipe" emacsmirror-mirror)
  straight-recipes-retrieve(emacsmirror-mirror nil)
  straight--convert-recipe((emacsmirror-mirror :type git :host github :repo "emacs-straight/emacsmirror-mirror" :build nil) nil)
  straight-use-package((emacsmirror-mirror :type git :host github :repo "emacs-straight/emacsmirror-mirror" :build nil) #f(compiled-function (package available) #<bytecode 0x15706da9f5d5>))
  straight-use-package-lazy((emacsmirror-mirror :type git :host github :repo "emacs-straight/emacsmirror-mirror" :build nil))
  straight-use-recipes((emacsmirror-mirror :type git :host github :repo "emacs-straight/emacsmirror-mirror" :build nil))
  (if straight-recipes-emacsmirror-use-mirror (straight-use-recipes '(emacsmirror-mirror :type git :host github :repo "emacs-straight/emacsmirror-mirror" :build nil)) (straight-use-recipes '(emacsmirror :type git :host github :repo "emacsmirror/epkgs" :nonrecursive t :build nil)))
  eval-buffer(#<buffer  *load*-345660> nil "/home/dadinn/.emacs.d/straight/repos/straight.el/b..." nil t)  ; Reading at buffer position 5021
  load-with-code-conversion("/home/dadinn/.emacs.d/straight/repos/straight.el/b..." "/home/dadinn/.emacs.d/straight/repos/straight.el/b..." nil t)
  load("/home/dadinn/.emacs.d/straight/repos/straight.el/b..." nil nomessage)
  (let ((bootstrap-file (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory)) (bootstrap-version 5)) (if (file-exists-p bootstrap-file) nil (save-current-buffer (set-buffer (url-retrieve-synchronously "https://raw.githubusercontent.com/raxod502/straigh..." 'silent 'inhibit-cookies)) (goto-char (point-max)) (eval-print-last-sexp))) (load bootstrap-file nil 'nomessage))
  eval-buffer(#<buffer  *load*> nil "/home/dadinn/.emacs.d/init.el" nil t)  ; Reading at buffer position 552
  load-with-code-conversion("/home/dadinn/.emacs.d/init.el" "/home/dadinn/.emacs.d/init.el" t t)
  load("/home/dadinn/.emacs.d/init" noerror nomessage)
  startup--load-user-init-file(#f(compiled-function () #<bytecode 0x15706d9248a5>) #f(compiled-function () #<bytecode 0x15706d924775>) t)
  command-line()
  normal-top-level()

After this Emacs is completely bricked, and I have to remove the straight/build and straight/repos directories, and download and recompile all packages again.

Version information

  • Emacs version: 27.1
  • Operating system: Debian 11
@dadinn dadinn added the bug label May 18, 2023
@progfolio
Copy link
Contributor

progfolio commented May 18, 2023

After this Emacs is completely bricked, and I have to remove the straight/build and straight/repos directories, and download and recompile all packages again.

You should be able to start Emacs sans your config from the command line via emacs -q.
Please try that and then do the following:

  1. Open straight.el's main file (usually located at $HOME/.emacs.d/straight/repos/straight.el/straight.el)
  2. M-x eval-buffer in the straight.el buffer.
  3. Please share the output of M-x straight-version.

I suspect you are running an older version of straight.el which does not account for the change in NonGNU's recipe format:

6848c14

If that is the case, updating straight.el should fix the issue.

@dadinn
Copy link
Author

dadinn commented Jun 1, 2023

I've updated straight.el to 8753008.

Now Emacs loads fine, but vertico-prescient still doesn't work, as I get the error:
Error (use-package): Cannot load vertico-prescient

@progfolio
Copy link
Contributor

progfolio commented Jun 7, 2023

I've updated straight.el to 8753008.

Now Emacs loads fine, but vertico-prescient still doesn't work, as I get the error: Error (use-package): Cannot load vertico-prescient

Installs fine with the following test case:

Test Case
(straight-bug-report
  :user-dir "straight.vertico-prescient"
  :post-bootstrap 
  (straight-use-package 'vertico-prescient))
  • Test run at: 2023-06-06 21:28:14
  • system-type: gnu/linux
  • straight-version: prerelease (HEAD -> develop, origin/develop) 4701c9a 2023-05-25
  • emacs-version: GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.37, cairo version 1.17.8) of 2023-05-20
Output
Bootstrapping straight.el...
Bootstrapping straight.el...done
Looking for gnu-elpa-mirror recipe → Cloning melpa...
Looking for gnu-elpa-mirror recipe → Cloning melpa...done
Looking for nongnu-elpa recipe → Cloning gnu-elpa-mirror...
Looking for nongnu-elpa recipe → Cloning gnu-elpa-mirror...done
Looking for emacsmirror-mirror recipe → Cloning nongnu-elpa...
Looking for emacsmirror-mirror recipe → Cloning nongnu-elpa...done
Looking for emacsmirror-mirror recipe → Cloning el-get...
Looking for emacsmirror-mirror recipe → Cloning el-get...done
Looking for straight recipe → Cloning emacsmirror-mirror...
Looking for straight recipe → Cloning emacsmirror-mirror...done
Building straight...
Building straight...done

Test run with version: prerelease (HEAD -> develop, origin/develop) 4701c9a 2023-05-25
Cloning prescient.el (for vertico-prescient)...
Cloning prescient.el (for vertico-prescient)...done
Building vertico-prescient...
Building vertico-prescient → Building prescient...
Building vertico-prescient → Building prescient...done
Building vertico-prescient → Cloning vertico...
Building vertico-prescient → Cloning vertico...done
Building vertico-prescient → Building vertico...
Building vertico-prescient → Building vertico → Cloning compat...
Building vertico-prescient → Building vertico → Cloning compat...done
Building vertico-prescient → Building vertico → Building compat...
Building vertico-prescient → Building vertico → Building compat...done
Building vertico-prescient → Building vertico...
Building vertico-prescient → Building vertico...done
Building vertico-prescient...
Building vertico-prescient...done

Packages:
"straight"                n/a                  develop 4701c9a 2023-05-25
"org-elpa"                n/a                  n/a
"melpa"                   n/a                  master 6e881965 2023-06-06
"gnu-elpa-mirror"         n/a                  master e605acd 2023-06-04
"nongnu-elpa"             n/a                  main 4456edc 2023-05-24
"el-get"                  melpa                master 807b15c9 2023-06-01
"emacsmirror-mirror"      n/a                  master 9a3385b 2023-06-05
"vertico-prescient"       melpa                main 822481e 2023-02-21
"prescient"               melpa                main 822481e 2023-02-21
"vertico"                 gnu-elpa-mirror      master 17d7cf7 2023-05-24
"compat"                  gnu-elpa-mirror      master e07c0f2 2023-05-25

Perhaps your recipe repositories need to be updated?
I would try M-x straight-pull-recipe-repositories, then M-x straight-use-package vertico-prescient.
If that doesn't work, please evaulate the test case from above in you *scratch* buffer.
It will install straight in a temporary test environment and pop up a *straight-bug-report* buffer when the test is complete. Share the contents of the buffer here.

@dadinn
Copy link
Author

dadinn commented Jun 10, 2023

If I try to execute the test in the *scratch* buffer I get an error Buffer *straight-bug-report-process* does not visit a file.

I've also tried starting Emacs with emacs -q command, opening and evaluating the straight.el buffer with eval-buffer, but nothing seems to happen.

@progfolio
Copy link
Contributor

progfolio commented Jun 10, 2023

If I try to execute the test in the scratch buffer I get an error Buffer straight-bug-report-process does not visit a file.

Please ensure debug-on-error is non-nil (you can do this with M-x toggle-debug-on-error) and try evaluating the test again. Copy the whole backtrace buffer contents here. You'll likely need to expand any ellipses in the backtrace buffer first. Typing "." should do that.

@dadinn
Copy link
Author

dadinn commented Jun 11, 2023

debug-on-error is t, after turning it on with toggle-debug-on-error. Yet when executing the test it doesn't enter the debugger, and shows the same error. Actually, realised there is a flash of another message before, shown in the *Messages* buffer:

Testing straight.el in directory: /tmp/straight.vertico-prescient
"Testing straight.el in directory: /tmp/straight.vertico-prescient"
user-error: Buffer *straight-bug-report-process* does not visit a file

@dadinn
Copy link
Author

dadinn commented Jun 11, 2023

Just realised, your Emacs version is 30.0.50. Mine is only 27.1.
Debian Bullseye... conservativism...

@progfolio
Copy link
Contributor

progfolio commented Jun 11, 2023

debug-on-error is t, after turning it on with toggle-debug-on-error. Yet when executing the test it doesn't enter the debugger, and shows the same error.

Where is this error displayed?

If no backtrace buffer shows up, the next step would be to step through the expanded macro w edebug. You can get the expansion by evaluating:

(let (print-length print-circle)
  (macroexpand
   '(straight-bug-report
    :user-dir "straight.vertico-prescient"
    :post-bootstrap 
    (straight-use-package 'vertico-prescient)))) 

Copy the output to the scratch buffer.
Then execute C-u M-x eval-defun.
That should start evaluating the expression in edebug. Typing n will step through each expression being evaluated and show the result. It should show where that error is being signaled.

@samcramer
Copy link

samcramer commented Jun 21, 2023

I have the same problem:

Debugger entered--Lisp error: (wrong-type-argument stringp afternoon-theme)  
intern(afternoon-theme)
    #f(compiled-function (it) #<bytecode 0x13cb94cd0d205b7>)((afternoon-theme :url "https://github.com/osener/emacs-afternoon-theme" :ignored-files ("*.png")))
<etc>

@progfolio
Copy link
Contributor

I have the same problem:

Debugger entered--Lisp error: (wrong-type-argument stringp afternoon-theme)  
intern(afternoon-theme)
    #f(compiled-function (it) #<bytecode 0x13cb94cd0d205b7>)((afternoon-theme :url "https://github.com/osener/emacs-afternoon-theme" :ignored-files ("*.png")))
<etc>

Please follow the debugging steps listed in the previous comments and share the output.

@dadinn
Copy link
Author

dadinn commented Jun 24, 2023

The macro expands for me to this:

(let* ((preserve-files nil) (interactive nil) (emacs-executable "/usr/bin/emacs") (emacs-args (append ... ...)) (raw nil) (test "(with-demoted-errors \"Error: %S\"
  (let
      ((straight-bug-report-args
        '(:post-bootstrap
          (progn
            (straight-use-package 'vertico-prescient))
          :user-dir \"/tmp/straight.vertico-prescient\" :executable \"/usr/bin/emacs\")))
    (setq user-emacs-directory \"/tmp/straight.vertico-prescient\")
    (setq straight-repository-branch \"develop\")
    (defvar bootstrap-version)
    (let
        ((bootstrap-file
          (expand-file-name \"straight/repos/straight.el/bootstrap.el\" user-emacs-directory))
         (bootstrap-version 6))
      (unless
          (file-exists-p bootstrap-file)
        (with-current-buffer
            (url-retrieve-synchronously
             (concat \"https://raw.githubusercontent.com/\" \"radian-software/straight.el/develop/install.el\")
             'silent 'inhibit-cookies)
          (goto-char
           (point-max))
          (eval-print-last-sexp)))
      (load bootstrap-file nil 'nomessage))
    (condition-case nil
        (message \"Test run with version: %s\"
                 (straight-version))
      (error nil))
    (unwind-protect
        (progn
          (straight-use-package 'vertico-prescient))
      (message \"Packages:\\n%s\\n\"
               (straight-bug-report--format-package-info
                (straight-bug-report-package-info))))))
") (report "(straight-bug-report
  :user-dir \"straight.vertico-prescient\"
  :post-bootstrap 
  (straight-use-package 'vertico-prescient))") (temp-emacs-dir "/tmp/straight.vertico-prescient")) (with-current-buffer (get-buffer-create straight-bug-report--process-buffer) (fundamental-mode) (erase-buffer)) (make-process :name straight-bug-report--process-buffer :buffer straight-bug-report--process-buffer :command `(... ... ...) :sentinel (lambda (_process _event) (unless interactive ... ...) (unless preserve-files ...))) (message "Testing straight.el in directory: %s" temp-emacs-dir))

And edebug seems to say the issue is with the (append ... ...) part:

Debugger entered--Lisp error: (void-variable \.\.\.)
  (append \.\.\. \.\.\.)
  (let* ((preserve-files nil) (interactive nil) (emacs-executable "/usr/bin/emacs") (emacs-args (append \.\.\. \.\.\.)) (raw nil) (test "(with-demoted-errors \"Error: %S\"\n  (let\n      ((st...") (report "(straight-bug-report\n  :user-dir \"straight.vertico...") (temp-emacs-dir "/tmp/straight.vertico-prescient")) (save-current-buffer (set-buffer (get-buffer-create straight-bug-report--process-buffer)) (fundamental-mode) (erase-buffer)) (make-process :name straight-bug-report--process-buffer :buffer straight-bug-report--process-buffer :command '(\.\.\. \.\.\. \.\.\.) :sentinel #'(lambda (_process _event) (if interactive nil \.\.\. \.\.\.) (if preserve-files nil \.\.\.))) (message "Testing straight.el in directory: %s" temp-emacs-dir))
  (progn (let* ((preserve-files nil) (interactive nil) (emacs-executable "/usr/bin/emacs") (emacs-args (append \.\.\. \.\.\.)) (raw nil) (test "(with-demoted-errors \"Error: %S\"\n  (let\n      ((st...") (report "(straight-bug-report\n  :user-dir \"straight.vertico...") (temp-emacs-dir "/tmp/straight.vertico-prescient")) (save-current-buffer (set-buffer (get-buffer-create straight-bug-report--process-buffer)) (fundamental-mode) (erase-buffer)) (make-process :name straight-bug-report--process-buffer :buffer straight-bug-report--process-buffer :command '(\.\.\. \.\.\. \.\.\.) :sentinel #'(lambda (_process _event) (if interactive nil \.\.\. \.\.\.) (if preserve-files nil \.\.\.))) (message "Testing straight.el in directory: %s" temp-emacs-dir)))
  (setq elisp--eval-defun-result (progn (let* ((preserve-files nil) (interactive nil) (emacs-executable "/usr/bin/emacs") (emacs-args (append \.\.\. \.\.\.)) (raw nil) (test "(with-demoted-errors \"Error: %S\"\n  (let\n      ((st...") (report "(straight-bug-report\n  :user-dir \"straight.vertico...") (temp-emacs-dir "/tmp/straight.vertico-prescient")) (save-current-buffer (set-buffer (get-buffer-create straight-bug-report--process-buffer)) (fundamental-mode) (erase-buffer)) (make-process :name straight-bug-report--process-buffer :buffer straight-bug-report--process-buffer :command '(\.\.\. \.\.\. \.\.\.) :sentinel #'(lambda (_process _event) (if interactive nil \.\.\. \.\.\.) (if preserve-files nil \.\.\.))) (message "Testing straight.el in directory: %s" temp-emacs-dir))))
  elisp--eval-defun()
  #<subr eval-defun>(nil)
  edebug--eval-defun(#<subr eval-defun> nil)
  apply(edebug--eval-defun #<subr eval-defun> nil)
  eval-defun(nil)
  funcall-interactively(eval-defun nil)
  god-mode-self-insert()
  funcall-interactively(god-mode-self-insert)
  command-execute(god-mode-self-insert)

@progfolio
Copy link
Contributor

And edebug seems to say the issue is with the (append ... ...) part:

That's odd. The print-level should be let-bound to nil here.
Try evaluating the following in your *scratch* buffer and then evaluating the test case:

(setq print-level nil
      print-length nil
      eval-expression-print-length nil
      eval-expression-print-level nil) 

@valignatev
Copy link

I have exactly the same issue: Error (use-package): Cannot load vertico-prescient

funnily enough, m-x straight-version errors out with wrong type argument stringp. The straight commit I'm on is 039e5c9a9b5c00749602afb41341e9e77ba09429.
emacs-version is 29.0.60

here's output of straight-bug-report from the scratch buffer:

Test Case
(straight-bug-report
  :user-dir "straight.vertico-prescient"
  :post-bootstrap 
  (straight-use-package 'vertico-prescient))
  • Test run at: 2023-07-14 14:47:18
  • system-type: gnu/linux
  • straight-version: prerelease (HEAD -> master, origin/master, origin/HEAD) 039e5c9 2023-03-12
  • emacs-version: GNU Emacs 29.0.60 (build 3, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, cairo version 1.17.6) of 2023-01-20
Output
Bootstrapping straight.el...
Bootstrapping straight.el...done
Looking for gnu-elpa-mirror recipe → Cloning melpa...
Looking for gnu-elpa-mirror recipe → Cloning melpa...done
Looking for nongnu-elpa recipe → Cloning gnu-elpa-mirror...
Looking for nongnu-elpa recipe → Cloning gnu-elpa-mirror...done
Looking for emacsmirror-mirror recipe → Cloning nongnu-elpa...
Looking for emacsmirror-mirror recipe → Cloning nongnu-elpa...done
Looking for emacsmirror-mirror recipe → Cloning el-get...
Looking for emacsmirror-mirror recipe → Cloning el-get...done
Looking for straight recipe → Cloning emacsmirror-mirror...
Looking for straight recipe → Cloning emacsmirror-mirror...done
Building straight...
Building straight...done

Test run with version: prerelease (HEAD -> develop, origin/develop) ff63b15 2023-06-15
Cloning prescient.el (for vertico-prescient)...
Cloning prescient.el (for vertico-prescient)...done
Building vertico-prescient...
Building vertico-prescient → Building prescient...
Building vertico-prescient → Building prescient...done
Building vertico-prescient → Cloning vertico...
Building vertico-prescient → Cloning vertico...done
Building vertico-prescient → Building vertico...
Building vertico-prescient → Building vertico → Cloning compat...
Building vertico-prescient → Building vertico → Cloning compat...done
Building vertico-prescient → Building vertico → Building compat...
Building vertico-prescient → Building vertico → Building compat...done
Building vertico-prescient → Building vertico...
Building vertico-prescient → Building vertico...done
Building vertico-prescient...
Building vertico-prescient...done

Packages:
"straight"                n/a                  develop ff63b15 2023-06-15
"org-elpa"                n/a                  n/a
"melpa"                   n/a                  master 4d787fbf 2023-07-11
"gnu-elpa-mirror"         n/a                  master be1351c 2023-07-14
"nongnu-elpa"             n/a                  main c0840d0 2023-06-28
"el-get"                  melpa                master d8321df8 2023-06-23
"emacsmirror-mirror"      n/a                  master d012c18 2023-07-11
"vertico-prescient"       melpa                main a402a7e 2023-07-12
"prescient"               melpa                main a402a7e 2023-07-12
"vertico"                 gnu-elpa-mirror      master 7c3f77d 2023-07-04
"compat"                  gnu-elpa-mirror      master e07c0f2 2023-05-25

Debug macro expanded to

(let*
    ((preserve-files nil)
     (interactive nil)
     (emacs-executable "/usr/bin/emacs")
     (emacs-args (append (unless interactive '("--batch")) '("-Q" "--eval")))
     (raw nil)
     (test "(with-demoted-errors \"Error: %S\"\n  (let\n      ((st...")
     (report "(straight-bug-report\n  :user-dir \"straight.vertico...")
     (temp-emacs-dir "/tmp/straight.vertico-prescient"))
  (with-current-buffer
      (get-buffer-create straight-bug-report--process-buffer)
    (fundamental-mode)
    (erase-buffer))
  (make-process
   :name straight-bug-report--process-buffer
   :buffer straight-bug-report--process-buffer
   :command `(,emacs-executable ,@emacs-args ,test)
   :sentinel (lambda (_process _event)
               (unless interactive
                 (unless raw (straight-bug-report--format report))
                 (run-with-idle-timer
                  1 nil
                  (lambda nil
                    (pop-to-buffer straight-bug-report--process-buffer))))
               (unless preserve-files
                 (when (file-exists-p temp-emacs-dir)
                   (delete-directory temp-emacs-dir 'recursive)))))
  (message "Testing straight.el in directory: %s" temp-emacs-dir))

Results didn't show anything enteresting, but this got outputted into *straight-bug-report-process*:

Error: end-of-file nil
  mapbacktrace(#f(compiled-function (evald func args flags) #<bytecode 0x11562f3847ae86a4>))
  debug-early-backtrace()
  debug-early(error (end-of-file))
  read-from-string("(with-demoted-errors \"Error: %S\"\n  (let\n      ((st...")
  command-line-1(("--eval" "(with-demoted-errors \"Error: %S\"\n  (let\n      ((st..."))
  command-line()
  normal-top-level()
End of file during parsing

Let me know if there are some steps that I've missed

@progfolio
Copy link
Contributor

@valignatev:

The straight commit I'm on is 039e5c9.

Please update straight.el to the latest commit and see if that works for you.

@valignatev
Copy link

Ok made sure I'm on the last commit (ff63b15) No difference, unfortunately, still can't load just this one package

@progfolio
Copy link
Contributor

progfolio commented Jul 15, 2023

@valignatev please share your init file.
It looks like the package installed correctly for you in the test environment.

@valignatev
Copy link

valignatev commented Jul 15, 2023

https://github.com/valignatev/dotemacs/blob/master/init.el

here it is. I installed orderless + set up savehist to compensate for prescient

@progfolio
Copy link
Contributor

https://github.com/valignatev/dotemacs/blob/master/init.el

here it is. I installed orderless + set up savehist to compensate for prescient

Thanks. I uncommented the presciient/vertico-prescient declarations and everything installed fine for me. I would try a completely clean install (delete the eln-cache, straight directory, everything installed as a result of bootstrapping) and see if that works. Unfortunately, I can't give much more help than that considering I'm unable to reproduce the problem.

@valignatev
Copy link

I see, I see, thanks for the help anyway! Weird that it's only one package. If orderless + savehist didn't satisfy me as a replacement, I'll try to wipe everything and reinstall it. Thanks again for your time!

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

No branches or pull requests

4 participants