syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.56k stars 4.9k forks source link

error (use-package) - symbol's fuction definition is void #16422

Closed Kan-Rup closed 4 weeks ago

Kan-Rup commented 1 month ago

First time install of spacemacs. problems. install in debian was even more difficult. got a better result in mint.

undo did not work.

Error (use-package) : hl-todo:/init: symbol's function definition is void : global-bl-todo-mode Error (use-package) : undo-tree/:init: symbol's function definition is void : global-undo-tree-mode

how to fix.

why do you not offer a stable version?

the main page says three errors occurred : error package 'spinner-1.7.3' is unavailable error package 'compat-29' is unavailable error package 'compat-29.1.4.2' is unavailable

warnings : cannot find any of the specified fonts (source code pro) font settings may not be correct

Kan-Rup commented 1 month ago

look, I know I am not entitled to anything. so, why waste my time? does anyone have an answer to why the errors are. elpa is supposed to have some packages but they don't install. I manually fixed the spinner-1.7.3 problem by downloading from my package manager. There are plenty of decent IDEs out there, so if I don't get a reply soon, and by the look of the amount of fixes posted on the FAQ, I will assume this is not worth the time and effort and these errors will repeat in the future, and I will move on. thanks.

Kan-Rup commented 1 month ago

I got compat and spinner working. undo-tree does not seem to exist in those repos. I had to install undo-fu. it still leaves a warning message. Got to love the plug-and-stress mentality of linux devs. I'd still probably have to use VS code in the end. bye.

BenedictHW commented 1 month ago

I found this by googling your error above.

https://stackoverflow.com/questions/72666830/spacemacs-warnings-after-upgrade-debian-10-to-11-on-chromebook

Does this help?

BenedictHW commented 1 month ago

Those ELPA warnings may be due to how your linux distro packages Emacs. Always happy to see new blood in the Emacs world.

Kan-Rup commented 1 month ago

I am trying to do as that thread says...so I am about to do "install gnu-elpa-keyring-update" but I get problem with it saying "failed to verify signature" hopefully the screenshot I took will show. look at the second column side, there is text there too.

I previously did " M-x set-variable RET package-check-signature RET nil RET " to get the keyring-update thing to show up...

undo-fu thing doesn't fix the undo-tree thing. so if this is going to be usable, need fix...

Screenshot from 2024-05-31 14-51-02

I have been experiencing same issue with GNU's official Emacs install, since Emacs 27.1.

For now, the only way I found to fix it is to disable signature checking and verify all packages by hand.

In my init.el I have temporarily added:

;; disable because of elpa bug in emacs 27.1 (setq package-check-signature nil)

Hopefully the bug will be fixed in next release.

Kan-Rup commented 1 month ago

I did copy the (setq package-check-signature nil) into the init, then I removed it... there is different message now, bigger :

Screenshot 2

looks like some encryption keys expired or something?

fnussbaum commented 1 month ago

You might want to try what's described in the last few comments here: https://github.com/syl20bnr/spacemacs/issues/13054 Otherwise, if you compile and install the newest Emacs 29.3 from source, you should not get such errors I think (but I am not sure about this).

smile13241324 commented 4 weeks ago

I have installed a fresh spacemacs instance on windows and it just worked (wsl2 + wslg) so I assume there is no general issue.

If you post your system details as is required in our issue template here https://github.com/syl20bnr/spacemacs/blob/develop/core/templates/REPORTING.template I may have a look.


Ok some general thoughts, it looks like you have an issue with emacs in general, not with spacemacs in particular. Note that spacemacs requires a properly running emacs as basis. I suggest you update your system to debian 12 (bookworm) and install the current emacs there (28.2) then retry.

Kan-Rup commented 4 weeks ago

You might want to try what's described in the last few comments here: https://github.com/syl20bnr/spacemacs/issues/13054

gpg --homedir ~/.emacs.d/elpa/gnupg --keyserver hkp://keyserver.ubuntu.com --recv-keys 645357D2883A0966 worked for me (Debian 12, Emacs 28.2)

Changing the keyserver worked, the error message is gone and it loads to one screen. thanks.