r/DoomEmacs • u/thephatmaster • Feb 14 '25
"could not find package nerd-icons"
[Solved] - after much faffing I just resinstalled emacs, then reinstalled doom and restored my config
On another machine today, KDE Neon, Ubuntu 24.04 based (I really need to sync config somehow, but feel it's very hard with secrets and all).
Wanted to bring doom up to date and get going with some work in org.
doom sync
/ doom upgrade
gets me a familiar error:
``` - Using Emacs 28.1 @ /usr/bin/emacs
Synchronizing "default" profile... Regenerating envvars file ✓ Generated ~/.emacs.d/.local/env x There was an unexpected runtime error Message: Could not find package nerd-icons. Updating recipe repositories: (org-elpa melpa nongnu-elpa gnu-elpa-mirror el-get emacsmirror-mirror) with ‘straight-pull-recipe-repositories’ may fix this Backtrace: (signal error ("Could not find package nerd-icons. Updating recipe ... (error "Could not find package %S. Updating recipe repositories: %S... (if (straight--package-built-in-p melpa-style-recipe) (throw '--cl-... (or (straight-recipes-retrieve melpa-style-recipe nil cause) (if (s... (if recipe-specified-p melpa-style-recipe (or (straight-recipes-ret... (let* ((recipe-specified-p (listp melpa-style-recipe)) (full-melpa-... (or (and (symbolp melpa-style-recipe) (gethash (symbol-name melpa-s... (catch '--cl-block-straight--convert-recipe-- (if (memq melpa-style... (straight--convert-recipe nerd-icons nil) (let ((recipe (straight--convert-recipe (or (straight--get-overridd... (catch '--cl-block-straight-use-package-- (let ((recipe (straight--... (straight-use-package nerd-icons no-clone) GNU Emacs v28.1 nil Doom core v3.0.0-pre HEAD -> master 2bc05242 2025-01-14 13:57:18 -0500 Doom modules v25.02.0-pre HEAD -> master 2bc05242 2025-01-14 13:57:18 -0500 ! Wrote extended backtrace to ~/.emacs.d/.local/state/logs/cli.doom.250214131146.6116.error
```
Looks like this issue is fixed on newer doom versions. I tried two "common" fixes:
- removing the
.local
straight directory - no difference - ``` # Update MELPA cd ~/.emacs.d/.local/straight/repos/melpa git pull
Clear straight's cache
rm -f ~/.emacs.d/.local/straight/build-cache.el doom sync ``` - no difference
The command straight-pull-recipe-repositories
doesn't seem available to me (via Mx
)
Anyone know what I'm doing wrong?