Disabling doom-snippets package causes errors
- Dominant language
- Emacs Lisp
- Stars
- 22.7k
- Forks
- 3.1k
- Avg merge
- 10h 46m
- Merged PRs (30d)
- 4
Description
### I confirm that...
- [X] I have searched the [issue tracker](https://github.com/doomemacs/doomemacs/issues), [documentation](https://docs.doomemacs.org), [FAQ](https://docs.doomemacs.org/-/faq), [Discourse](https://discourse.doomemacs.org), and [Google](https://google.com), in case this issue has already been reported/resolved.
- [X] I have read "[How to Debug Issues](https://doomemacs.org/d/how2debug)", and will use it to provide as much information about this issue as possible.
- [X] The issue can be reproduced on the **latest** available commit of Doom.
- [X] The issue can be reproduced on a stable release of Emacs, such as 27 or 28. *(Doom does not support development builds like 29+ or any version ending in .50 or .9x)*
### Expected behavior
Setting `(package! doom-snippets :ignore t)` in `packages.el` should disable all built in snippets and only load my local snippets. (Like explained in the snippets module)
### Current behavior
For example opening an org file produces the following error:
```
File mode specification error: (file-missing Cannot open load file No such file or directory doom-snippets)
Error: failed to incrementally load yasnippet because: (file-missing Cannot open load file No such file or directory doom-snippets)
```
I can't even type commands because the error repeats when hitting `:`.
Backtrace:
```
Debugger entered--Lisp error: (file-missing "Cannot open load file" "No such file or directory" "doom-snippets")
doom-snippets-initialize()
#f(compiled-function () #)()
eval-after-load-helper("/home/ms/.emacs.d/.local/straight/build-28.2/yasni...")
run-hook-with-args(eval-after-load-helper "/home/ms/.emacs.d/.local/straight/build-28.2/yasni...")
do-after-load-evaluation("/home/ms/.emacs.d/.local/straight/build-28.2/yasni...")
yas-minor-mode-on()
yas-global-mode-enable-in-buffers()
funcall(yas-global-mode-enable-in-buffers)
(condition-case e (funcall hook) ((debug error) (signal 'doom-hook-error (list hook e))))
doom-run-hook(yas-global-mode-enable-in-buffers)
run-hook-wrapped(doom-run-hook yas-global-mode-enable-in-buffers)
(let ((doom--hook hook)) (run-hook-wrapped hook #'doom-run-hook))
(condition-case e (let ((doom--hook hook)) (run-hook-wrapped hook #'doom-run-hook)) ((debug doom-hook-error) (if debug-on-error nil (lwarn hook :error "Error running hook %S because: %s" (if (symbolp (car (cdr e))) (symbol-name (car (cdr e))) (car (cdr e))) (car (cdr (cdr e))))) (signal 'doom-hook-error (cons hook (cdr e)))))
(let ((hook (car --dolist-tail--))) (condition-case e (let ((doom--hook hook)) (run-hook-wrapped hook #'doom-run-hook)) ((debug doom-hook-error) (if debug-on-error nil (lwarn hook :error "Error running hook %S because: %s" (if (symbolp (car ...)) (symbol-name (car ...)) (car (cdr e))) (car (cdr (cdr e))))) (signal 'doom-hook-error (cons hook (cdr e))))) (setq --dolist-tail-- (cdr --dolist-tail--)))
(while --dolist-tail-- (let ((hook (car --dolist-tail--))) (condition-case e (let ((doom--hook hook)) (run-hook-wrapped hook #'doom-run-hook)) ((debug doom-hook-error) (if debug-on-error nil (lwarn hook :error "Error running hook %S because: %s" (if (symbolp ...) (symbol-name ...) (car ...)) (car (cdr ...)))) (signal 'doom-hook-error (cons hook (cdr e))))) (setq --dolist-tail-- (cdr --dolist-tail--))))
(let ((--dolist-tail-- hooks)) (while --dolist-tail-- (let ((hook (car --dolist-tail--))) (condition-case e (let ((doom--hook hook)) (run-hook-wrapped hook #'doom-run-hook)) ((debug doom-hook-error) (if debug-on-error nil (lwarn hook :error "Error running hook %S because: %s" (if ... ... ...) (car ...))) (signal 'doom-hook-error (cons hook (cdr e))))) (setq --dolist-tail-- (cdr --dolist-tail--)))))
doom-run-hooks(after-change-major-mode-hook)
apply(doom-run-hooks after-change-major-mode-hook)
run-hooks(after-change-major-mode-hook)
run-mode-hooks(minibuffer-inactive-mode-hook)
minibuffer-inactive-mode()
#(":" #("q" 0 1 (face shadow ex-index 1)) (keymap (10 . next-complete-history-element) (insert-state keymap "Auxiliary keymap for Insert state" (11 . previous-complete-history-element) (10 . next-complete-history-element)) (19 . consult-history) (13 . exit-minibuffer) (return . exit-minibuffer) (next . next-history-element) (prior . previous-history-element) (down . next-complete-history-element) (up . previous-complete-history-element) (S-right . forward-word) (S-left . backward-word) (escape . abort-recursive-edit) (23 . backward-kill-word) (22 . quoted-insert) (21 . evil-delete-whole-line) (14 . next-complete-history-element) (18 . evil-paste-from-register) (16 . previous-complete-history-element) (12 . evil-ex-completion) (11 . previous-complete-history-element) (7 . abort-recursive-edit) (6 . evil-forward-char) (4 . evil-ex-completion) (3 . abort-recursive-edit) (2 . evil-backward-char) (1 . evil-beginning-of-line) (remap keymap (completion-at-point . evil-ex-completion)) (tab . evil-ex-completion) (9 . evil-ex-completion) (127 . evil-ex-delete-backward-char)) nil evil-ex-history #("q" 0 1 (ex-index 1)) t)
apply(# (":" #("q" 0 1 (face shadow ex-index 1)) (keymap (10 . next-complete-history-element) (insert-state keymap "Auxiliary keymap for Insert state" (11 . previous-complete-history-element) (10 . next-complete-history-element)) (19 . consult-history) (13 . exit-minibuffer) (return . exit-minibuffer) (next . next-history-element) (prior . previous-history-element) (down . next-complete-history-element) (up . previous-complete-history-element) (S-right . forward-word) (S-left . backward-word) (escape . abort-recursive-edit) (23 . backward-kill-word) (22 . quoted-insert) (21 . evil-delete-whole-line) (14 . next-complete-history-element) (18 . evil-paste-from-register) (16 . previous-complete-history-element) (12 . evil-ex-completion) (11 . previous-complete-history-element) (7 . abort-recursive-edit) (6 . evil-forward-char) (4 . evil-ex-completion) (3 . abort-recursive-edit) (2 . evil-backward-char) (1 . evil-beginning-of-line) (remap keymap (completion-at-point . evil-ex-completion)) (tab . evil-ex-completion) (9 . evil-ex-completion) (127 . evil-ex-delete-backward-char)) nil evil-ex-history #("q" 0 1 (ex-index 1)) t))
explain-pause--wrap-native(# ":" #("q" 0 1 (face shadow ex-index 1)) (keymap (10 . next-complete-history-element) (insert-state keymap "Auxiliary keymap for Insert state" (11 . previous-complete-history-element) (10 . next-complete-history-element)) (19 . consult-history) (13 . exit-minibuffer) (return . exit-minibuffer) (next . next-history-element) (prior . previous-history-element) (down . next-complete-history-element) (up . previous-complete-history-element) (S-right . forward-word) (S-left . backward-word) (escape . abort-recursive-edit) (23 . backward-kill-word) (22 . quoted-insert) (21 . evil-delete-whole-line) (14 . next-complete-history-element) (18 . evil-paste-from-register) (16 . previous-complete-history-element) (12 . evil-ex-completion) (11 . previous-complete-history-element) (7 . abort-recursive-edit) (6 . evil-forward-char) (4 . evil-ex-completion) (3 . abort-recursive-edit) (2 . evil-backward-char) (1 . evil-beginning-of-line) (remap keymap (completion-at-point . evil-ex-completion)) (tab . evil-ex-completion) (9 . evil-ex-completion) (127 . evil-ex-delete-backward-char)) nil evil-ex-history #("q" 0 1 (ex-index 1)) t)
apply(explain-pause--wrap-native # (":" #("q" 0 1 (face shadow ex-index 1)) (keymap (10 . next-complete-history-element) (insert-state keymap "Auxiliary keymap for Insert state" (11 . previous-complete-history-element) (10 . next-complete-history-element)) (19 . consult-history) (13 . exit-minibuffer) (return . exit-minibuffer) (next . next-history-element) (prior . previous-history-element) (down . next-complete-history-element) (up . previous-complete-history-element) (S-right . forward-word) (S-left . backward-word) (escape . abort-recursive-edit) (23 . backward-kill-word) (22 . quoted-insert) (21 . evil-delete-whole-line) (14 . next-complete-history-element) (18 . evil-paste-from-register) (16 . previous-complete-history-element) (12 . evil-ex-completion) (11 . previous-complete-history-element) (7 . abort-recursive-edit) (6 . evil-forward-char) (4 . evil-ex-completion) (3 . abort-recursive-edit) (2 . evil-backward-char) (1 . evil-beginning-of-line) (remap keymap (completion-at-point . evil-ex-completion)) (tab . evil-ex-completion) (9 . evil-ex-completion) (127 . evil-ex-delete-backward-char)) nil evil-ex-history #("q" 0 1 (ex-index 1)) t))
read-from-minibuffer(":" #("q" 0 1 (face shadow ex-index 1)) (keymap (10 . next-complete-history-element) (insert-state keymap "Auxiliary keymap for Insert state" (11 . previous-complete-history-element) (10 . next-complete-history-element)) (19 . consult-history) (13 . exit-minibuffer) (return . exit-minibuffer) (next . next-history-element) (prior . previous-history-element) (down . next-complete-history-element) (up . previous-complete-history-element) (S-right . forward-word) (S-left . backward-word) (escape . abort-recursive-edit) (23 . backward-kill-word) (22 . quoted-insert) (21 . evil-delete-whole-line) (14 . next-complete-history-element) (18 . evil-paste-from-register) (16 . previous-complete-history-element) (12 . evil-ex-completion) (11 . previous-complete-history-element) (7 . abort-recursive-edit) (6 . evil-forward-char) (4 . evil-ex-completion) (3 . abort-recursive-edit) (2 . evil-backward-char) (1 . evil-beginning-of-line) (remap keymap (completion-at-point . evil-ex-completion)) (tab . evil-ex-completion) (9 . evil-ex-completion) (127 . evil-ex-delete-backward-char)) nil evil-ex-history #("q" 0 1 (ex-index 1)) t)
evil-ex(nil)
#(evil-ex nil)
apply(# (evil-ex nil))
funcall-interactively(evil-ex nil)
#(evil-ex nil nil)
apply(# (evil-ex nil nil))
explain-pause--wrap-call-interactively(# evil-ex nil nil)
apply(explain-pause--wrap-call-interactively # (evil-ex nil nil))
call-interactively(evil-ex nil nil)
command-execute(evil-ex)
```
### Steps to reproduce
1. Set `(package! doom-snippets :ignore t)` in `packages.el`
2. Run `doom sync`
3. Open Emacs
4. Open an org file (I suspect this would be the same in all other files)
5. This will show the error.
### System Information
https://pastebin.com/v9f1eKNj
Contributor guide
Assessment
This issue has not been assessed yet.