emacs-evil / evil

The extensible vi layer for Emacs.
GNU General Public License v3.0
3.38k stars 281 forks source link

Evil mode crashes upon starting emacs 28: Error: evil/:catch: Wrong number of arguments: (3 . 4), 2 #1752

Closed pooyataher closed 1 year ago

pooyataher commented 1 year ago

Issue name

Environment

Emacs version: 28.2 Operating System: Arch Linux Evil version: 1.15.0 Evil installation type: compiled the latest version of evil mode from source using use-package and straight Graphical/Terminal: graphical (under xwyaland) Tested in a make emacs session (see CONTRIBUTING.md): No

Reproduction steps

Expected behavior

Evil mode takes effect without any errors upon starting emacs 28

Actual behavior

Further notes

Apparently the fourth optional argument in the signature of the function define-obsolete-function-alias is now required in the new version 28.2 of emacs. The function is located in the file byte-run.el.gz The function can also be found in the file evil-ex.el

axelf4 commented 1 year ago

Should have been fixed by #1401. Try updating Evil.

Apparently the fourth optional argument in the signature of the function define-obsolete-function-alias is now required in the new version 28.2 of emacs.

The error (wrong-number-of-arguments (3 . 4) 2) is saying two arguments were given when 3 to 4 were required.

pooyataher commented 1 year ago

@axelf4 Thanks! In the Evil source code that straight had installed in my emacs, the function define-obsolete-function-alias was indeed called with 2 arguments. I uninstalled emacs and installed emacs-nativecomp in Arch (and ofcourse reinstalled evil). That seems to have fixed the problem!