Fork me on GitHub
#spacemacs
<
2024-02-05
>
jumar20:02:30

I'm getting this error when installing spacemacs on a new macbook. Using Emacs 29.2 https://emacsformacosx.com/

ā›” Error (use-package): Cannot load evil-evilified-state
ā›” Warning (initialization): An error occurred while loading '/Users/jumar/.emacs.d/init.el':

Symbol's value as variable is void: evil-evilified-state-map

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the '--debug-init' option to view a complete error backtrace.
This is after using the spacemacs installation instructions - using the master branch. Anything I'm doing wrong?

practicalli-johnny20:02:49

The default branch is develop and has been for several years now. Unless explicitly cloning the master branch, then it should be develop you are using. If the master branch was specifically cloned (or checked out) then I would expect quite a few things to break once packages were downloaded (as many packages have changed)

practicalli-johnny20:02:06

If the zip file of spacemacs config was downloaded from http://spacemacs.org that does contain master branch from about 2 years ago. So I would consider that option unsupported.

practicalli-johnny20:02:08

The clone command on the http://spacemacs.org website will download the develop branch

git clone  ~/.emacs.d

practicalli-johnny20:02:09

The spacemacs install instructions on Practicalli Spacemacs should be up to date, (september 2023 last updated) and they cover XDG and standard config locations, as well as how to use the Practicalli Spacemacs user config https://practical.li/spacemacs/install-spacemacs/

practicalli-johnny20:02:15

I think the error posted at the start of the thread is related to changes that occurred in the evil packages over the last year, which definitely wont be in master if that is what is actually been used.

practicalli-johnny21:02:01

If develop branch is being used. I suggest moving any Spacemacs user configuration files or directories, e.g. $HOME/.spacemacs or $HOME/.spacemacs.d or the XDG location, or any $SPACEMACSDIR file. Then start Emacs and let spacemacs create a new user config and see if the issue still remains. Starting Emacs this way should prompt a question from Spacemacs about Evil vs Holy mode (select evil) and if to use the standard or bare distribution (select standard).

jumar21:02:27

You are right, I'm on develop

jumar21:02:21

I should have made it clear that I did a really fresh installation. I did not copy over my old .spacemacs file at all. And I selected evil and standard installation

jumar21:02:04

I had p;roblems with 29.x versions before that's why I suspect it might cause those problems. I might try 28.2 to see if it makes any difference

practicalli-johnny21:02:21

It could just be a corrupted package download or a bad compile of the evil packages. In which case I would delete the evil packages or .elc files from the evil package directories in .emacs.d/elpa/29.2/develop/

practicalli-johnny21:02:37

Many people also recommend usinghttps://github.com/d12frosted/homebrew-emacs-plusfor MacOSX (this is what I have been using on a Mac since Emacs 29)

practicalli-johnny21:02:19

I am not using native compilation on the Mac and it seems to run okay without it. (AMD chipset on Mac, not intel)

jumar21:02:48

I have m3 pro. I'll try emacs plus and fresh installation

šŸ‘ 1
jumar22:02:12

Seems to be working better now - thanks!

šŸ‘ 2