-
Notifications
You must be signed in to change notification settings - Fork 259
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
Error: Recursive load #806
Comments
Pinging @raxod502, since I know nothing about |
I can't reproduce this following the directions you provided. Could you please demonstrate a minimal example that doesn't involve your full configuration? |
Hmm that's weird... I tried this a few times and it happens every time. One thing I did notice is that the error doesn't show up in Messages but in Warnings. I tried removing everything that seemed unrelated and couldn't get the error to appear, so it was easiest like this. I will try again to reduce it. |
Actually, I was able to reproduce it with the following config:
|
@aiguofer in future, it is always helpful to reduce your example as much as possible, otherwise the maintainers (us) have to do it anyway. Here's what I got it down to: (defvar bootstrap-version)
(let ((bootstrap-file
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
(bootstrap-version 5))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
(straight-use-package 'use-package)
(use-package elpy
:straight t
:defer t
:hook ((pyenv-mode . elpy-rpc-restart))
:init
(elpy-enable)) and then based on (defvar bootstrap-version)
(let ((bootstrap-file
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
(bootstrap-version 5))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
(straight-use-package 'elpy)
(autoload #'elpy-rpc-restart "elpy" nil t)
(require 'elpy) (I suspect that if you used In any case, adding some debugging statements in Elpy revealed that the problem is:
:set (lambda (var val) ;
(set-default var val)
(when (fboundp 'elpy-rpc-restart)
(elpy-rpc-restart))) which gets evaluated while loading
I think Elpy is in the wrong here, and should be patched so that it also verifies The problematic commit is jorgenschaefer/elpy@ff2f8e1 which introduced the code jorgenschaefer/elpy@ff2f8e1#diff-a01b1e451c8b56727a075f934b1aad0cR239-R243 cc @galaunay |
Just fixed it now (commit f64f8e). I promise to go through the documentation on autoload as a punishment. |
Oh wow, you guys are awesome! thanks so much for the thorough debug and quick solution. I'm curious why there were mentions of |
I'm running Emacs 26.3 from Ubuntu repos.
I've recently started getting an issue every time I update packages with
straight.el
. After I dostraight-pull-all
followed bystraight-rebuild-all
, after I restart emacs I get the following error:If I remove the
straight/build/
directory, the next time I start emacs it rebuilds everything and it works as expected. I'm not exactly sure if this is a problem withstraight.el
oruse-package
, or maybe the interaction of the 2?It's reproducible if you do the following (on an empty emacs config):
The text was updated successfully, but these errors were encountered: