emacs-evil / evil

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

Cannot run fresh evil on new emacs installation #1654

Closed glenaddict closed 2 years ago

glenaddict commented 2 years ago

Issue type

Environment

Emacs version: GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2022-08-15 Operating System: Ubuntu 20.04 Evil version: Evil version 1.15.0 Evil installation type: MELPA Graphical/Terminal: Graphical Tested in a make emacs session (see CONTRIBUTING.md): No

Reproduction steps

;; Set up package.el to work with MELPA (require 'package) (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) (package-initialize) (package-refresh-contents)

;; Download Evil (unless (package-installed-p 'evil) (package-install 'evil))

;; Enable Evil (require 'evil) (evil-mode 1)

Expected behavior

Evil works

Actual behavior

Debugger entered--Lisp error: (file-missing "Cannot open load file" "No such file or directory" "calc-loaddefs.el") load("calc-loaddefs.el" nil t) require(calc) eval-buffer(#<buffer load-528710> nil "/home/bob/.emacs.d/elpa/evil-20220812.1203/evil-co..." nil t) ; Reading at buffer position 1036 load-with-code-conversion("/home/bob/.emacs.d/elpa/evil-20220812.1203/evil-co..." "/home/bob/.emacs.d/elpa/evil-20220812.1203/evil-co..." nil t) require(evil-common) eval-buffer(#<buffer load-784116> nil "/home/bob/.emacs.d/elpa/evil-20220812.1203/evil.el" nil t) ; Reading at buffer position 5563 load-with-code-conversion("/home/bob/.emacs.d/elpa/evil-20220812.1203/evil.el" "/home/bob/.emacs.d/elpa/evil-20220812.1203/evil.el" nil t) require(evil) eval-buffer(#<buffer load> nil "/home/bob/.emacs" nil t) ; Reading at buffer position 393 load-with-code-conversion("/home/bob/.emacs" "/home/bob/.emacs" t t) load("~/.emacs" noerror nomessage) startup--load-user-init-file(#f(compiled-function () #<bytecode -0x1746a0482d913a43>) #f(compiled-function () #<bytecode -0x1f3c6feddc0a97f5>) t) command-line() normal-top-level()

Further notes

tomdl89 commented 2 years ago

Thanks for the bug report @glenaddict - so evil can't load calc? That seems strange. Did you build without it, or has emacs 29 broken being able to require it? Does calc appear when you M-x for it? If so, does it work? We can always make evil fail loading it silent, but I'd like to understand if there's an issue with emacs 29 or your build of it first.

glenaddict commented 2 years ago

calc is not available when I M-x package-install calc.

I installed emacs-snapshot from ppa:ubuntu-elisp/ppa which gave me emacs 29.0.50.

I have now reverted back to emacs 28.1 and evil is working again (thankfully)

I think there is a problem with emacs 29 for sure

tomdl89 commented 2 years ago

Thanks for the update @glenaddict . I'll mark this as closed (for housekeeping) but will reopen it if you (or anyone else) finds that the issue does in fact lie with evil.