seagle0128 / .emacs.d

Centaur Emacs - A Fancy and Fast Emacs Configuration
https://seagle0128.github.io/.emacs.d/
GNU General Public License v3.0
1.99k stars 269 forks source link

face-attribute: Setting current directory: No such file or directory, /build/emacs/src/emacs-27.2/ #339

Closed rif closed 2 years ago

rif commented 2 years ago

Thank you for the bug report

Bug description

Starting a few days ago when I start emacs on linux (arch) I get the following error:

face-attribute: Setting current directory: No such file or directory, /build/emacs/src/emacs-27.2/

and emacs stops loading configuration.

I get this message on two separate machines with the same linux OS.

Steps to reproduce

Just start emacs

Expected behavior

Emacs loading the configuration as usual.

OS

Linux

Emacs Version

27

Error callstack

No response

Anything else

As a workaround, I created the entire /build/emacs/src/emacs-27.2/ path and then emacs starts correctly.

seagle0128 commented 2 years ago

How about emacs -Q?

rif commented 2 years ago

emacs -Q and emacs -Q --l ~/.emacs.d/init-mini.el are fine, they don't have the issue.

seagle0128 commented 2 years ago

No idea. It's better have the backtrace for the further investigation.

rif commented 2 years ago

Can you tell me how to obtain the backtrace?

seagle0128 commented 2 years ago

M-x toggle-debug-on-error.

rif commented 2 years ago

But the error occurs during startup and by the time I can enter this command the error already happened.

seagle0128 commented 2 years ago

See the command args:emacs --debug-init.

rif commented 2 years ago

I only get "Setting current directory: No such file or directory, /build/emacs/src/emacs-27.2/" in the bottom echo area An in the Messages I get this:

Loading /home/rif/.emacs.d/custom.el (source)...done Set package archives to ‘melpa’ Loaded theme ‘doom-city-lights’ [Treemacs] Warning: coudn’t find default background colour for icons, falling back on #2d2d31. [Treemacs] Warning: couldn’t find hl-line-mode’s background color for icons, falling back on #2d2d31. Starting new Ispell process aspell with default dictionary...done Loading /home/rif/.emacs.d/recentf...done Cleaning up the recentf list...done (0 removed) custom-initialize-reset: Setting current directory: No such file or directory, /build/emacs/src/emacs-27.2/

rif commented 2 years ago

If you don't see any hint in these messages I guess we can close this issue because it's probably not related to your configs.

seagle0128 commented 2 years ago

Yep, according to the messages above, it seems you built the emacs yourself. I don't think it's related to the configuration.

seagle0128 commented 2 years ago

I found it might be related to blamer. I removed this package now.

rif commented 2 years ago

Yes, I confirm the issue is gone after centaur-update. Thank you!