Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package installation error is ignored despite --debug-init #16871

Open
bcc32 opened this issue Mar 8, 2025 · 1 comment
Open

Package installation error is ignored despite --debug-init #16871

bcc32 opened this issue Mar 8, 2025 · 1 comment

Comments

@bcc32
Copy link
Collaborator

bcc32 commented Mar 8, 2025

If package-installation fails (at least from quelpa recipes, I didn't test other packages), the error is not caught by --debug-init and instead startup proceeds as normal. This seems bad, --debug-init should start the debugger when the package installation encounters an error rather than later down the line when the package fails to load.

For example, I deliberately uninstalled and broke my local copy of evil-evilified-state, then tried starting emacs --debug-init. The error appears in *Messages* but does not trigger the debugger, which only gets tripped when a later step attempts to load the package and fails.

(Spacemacs) --> installing package: evil-evilified-state@spacemacs-bootstrap... [1/1]
Fetcher: file
Source: nil

(Spacemacs) Error: 
An error occurred while installing evil-evilified-state (error: (error Single file evil-evilified-state-2.el does not match package name evil-evilified-state))

Similarly, when use-package fails to find a package to load it does not trigger the debugger despite --debug-init.

@bcc32
Copy link
Collaborator Author

bcc32 commented Mar 8, 2025

Doing some digging, it appears that errors raised inside condition-case-unless-debug (such as inside configuration-layer//install-package) do not trip the debugger with --debug-init. I don't happen to have an Emacs 29 install handy right now so I'm not immediately sure if this is a regression in Emacs 30.1. Seems surprising.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant