-
Notifications
You must be signed in to change notification settings - Fork 151
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
Comments
You should be able to start Emacs sans your config from the command line via
I suspect you are running an older version of straight.el which does not account for the change in NonGNU's recipe format: If that is the case, updating straight.el should fix the issue. |
I've updated Now Emacs loads fine, but |
Installs fine with the following test case: Test Case(straight-bug-report
:user-dir "straight.vertico-prescient"
:post-bootstrap
(straight-use-package 'vertico-prescient))
OutputBootstrapping 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? |
If I try to execute the test in the I've also tried starting Emacs with |
Please ensure debug-on-error is non-nil (you can do this with |
|
Just realised, your Emacs version is |
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. |
I have the same problem:
|
Please follow the debugging steps listed in the previous comments and share the output. |
The macro expands for me to this:
And edebug seems to say the issue is with the
|
That's odd. The print-level should be let-bound to nil here. (setq print-level nil
print-length nil
eval-expression-print-length nil
eval-expression-print-level nil) |
I have exactly the same issue: funnily enough, 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))
OutputBootstrapping 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
Let me know if there are some steps that I've missed |
Please update straight.el to the latest commit and see if that works for you. |
Ok made sure I'm on the last commit (ff63b15) No difference, unfortunately, still can't load just this one package |
@valignatev please share your init file. |
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. |
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! |
What's wrong
I've tried to install
vertico-prescient
package, which fails, and the error recommended that I update my straight repos usingstraight-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 installvertico-prescient
itself.The error (with stacktrace) when starting Emacs with
--debug-init
:After this Emacs is completely bricked, and I have to remove the
straight/build
andstraight/repos
directories, and download and recompile all packages again.Version information
The text was updated successfully, but these errors were encountered: