-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Using a "Spacemacs/restart" function results in a wrong number of arguments error (Emacs 29.1) #16185
Comments
I notice that this open issue on I wonder if the suggestion in that issue of requiring
we could instead have
A quick test of this code-change locally seems like it would work, but I'm no expert about package loading complexities nor am I set up to do thorough testing of changes to spacemacs. |
- Recent PR change ":after files" with deferred loading which doesn't seem to determinably solve the problem with Emacs 29 of restart-emacs/restart-emacs colliding with files/restart-emacs (introduced with Emacs 29 with fewer args). - Switch to ":require files" to ensure it's loaded before the restart-emacs package, so the restart-emacs/restart-emacs function ovewrites the core function and not the other way around. - May be REVERTABLE depending on how upstream copes with this change. See also: syl20bnr#16185
The PR #16186 should fix the issue. |
Thank you very much! |
The PR does seem to address this issue, so I'm comfortable closing. |
Thanks for your confirmation. |
Description
Using one of the "spacemacs/restart" calls results in a "wrong number of
arguemnts (0.0), 1" error.
Reproduction guide 🪲
Observed behaviour: 👀 💔
throws the wrong number of arguments error.
It appears that spacemacs is attempting to pass a "--resume-layouts" argument
down into the Emacs fundamental "restart-emacs" method, which in 29.1 seems to
be a method that does not take any parameters.
This seems like a core bug.
I have tried doing this from a fresh install of both Emacs and Spacemacs and the error occurs.
I believe that this commit here might be involved: 91f6b2d (see PR #16178).
Reverting that change seems to fix the issue.
Expected behaviour: ❤️ 😄
Emacs should restart
System Info 💻
Backtrace 🐾
The text was updated successfully, but these errors were encountered: