[Bug] doom-modeline - There was an unexpected runtime error
invalid
### Thank you for the bug report
- [x] I am using the latest version of `doom-modeline` related packages.
- [x] I checked [FAQ](https://github.com/seagle0128/doom-modeline#faq).
- [ ] You may also try reproduce the issue using clean environment and minimal configurations with
the command `emacs -Q`.
### Bug description
After upgrading to the latest version of doom, doom-modeline now fails when sync'ing with `unexpected runtime error`.
When I disable the doom-modeline everything syncs and runs.
### Steps to reproduce
1. `doom upgrade`
2. `doom sync`
### Expected behavior
The package should work as usual.
### OS
MacOS
### Emacs Version
30
### Emacs Configurations
Doom Emacs
### Error callstack
```emacs-lisp
- Using Emacs 30.2.50 @ /Applications/Emacs.app/Contents/MacOS/Emacs
> Synchronizing "default" profile...
> Regenerating envvars file
✓ Generated ~/.emacs.d/.local/env
x There was an unexpected runtime error
Message: Symbol's function definition is void
Details: (doom-modeline-mode)
Backtrace:
(doom-modeline-mode 1)
(condition-case err (doom-modeline-mode 1) ((debug error) (funcall use...
(progn (condition-case err (doom-modeline-mode 1) ((debug error) (func...
(condition-case err (progn (condition-case err (doom-modeline-mode 1) ...
(load-with-code-conversion "/Users/mike/.doom.d/packages.el" "/Users/m...
(load "/Users/mike/.doom.d/packages.el" noerror nomessage nosuffix)
(if (not noeval) (load file noerror 'nomessage 'nosuffix) (if (file-ex...
(progn (if (not noeval) (load file noerror 'nomessage 'nosuffix) (if (...
(unwind-protect (progn (if (not noeval) (load file noerror 'nomessage ...
(save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (...
(let ((temp-buffer (generate-new-buffer " *temp*" t))) (save-current-b...
(condition-case e (let ((temp-buffer (generate-new-buffer " *temp*" t)...
GNU Emacs v30.2.50 880eef8aeef7ba6346078404a09522ffc5fd3d8d
Doom core v3.0.0-pre HEAD -> master d23bbe87 2026-03-04 04:06:58 -0500
Doom modules v26.04.0-pre HEAD -> master d23bbe87 2026-03-04 04:06:58 -0500
```
### Anything else
`config.el`
```
;; modeline config
(setq doom-modeline-icon t)
(setq doom-modeline-major-mode-icon t)
(setq doom-modeline-lsp-icon t)
(setq doom-modeline-major-mode-color-icon t)
```
`packages.el`
```
(use-package doom-modeline
:ensure t
:init (doom-modeline-mode 1))
```
关闭于 2026-03-05 1 条评论