Skip to content

file-missing error during initialization #6

@fapdash

Description

@fapdash

Recently I sometimes get this error during Emacs startup and it seems to come from elixir-yasnippets. Weirdly it doesn't happen on every startup. The directory in the error message is the directory of the current buffer that is restored when Emacs starts.

Debugger entered--Lisp error: (file-missing "Opening directory" "No such file or directory" "/home/fap/repos/dotfiles/emacs/snippets")
  yas--subdirs("/home/fap/repos/dotfiles/emacs/snippets")
  yas/load-directory("/home/fap/repos/dotfiles/emacs/snippets")
  elixir-snippets-initialize()
  #f(compiled-function () #<bytecode 0x1980038cd235>)()
  eval-after-load(yasnippet #f(compiled-function () #<bytecode 0x1980038cd235>))
  byte-code("\300\301\302\"\210\303\301!\210\304\305!\207" [eval-after-load yasnippet #f(compiled-function () #<bytecode 0x1980038cd235>) require provide elixir-yasnippets] 3)
  (elixir-snippets-initialize)
  (closure (t) nil (elixir-snippets-initialize))()
  eval-after-load-helper("/home/fap/.emacs.d/elpa/yasnippet-20240406.1314/ya...")
  do-after-load-evaluation("/home/fap/.emacs.d/elpa/yasnippet-20240406.1314/ya...")
  autoload-do-load((autoload "yasnippet" "Toggle YASnippet mode.\n\nWhen YASnippet mode is ena..." t nil) yas-minor-mode)
  desktop-load-file(yas-minor-mode)
  desktop-create-buffer(208 "/home/fap/repos/dotfiles/emacs/.emacs" ".emacs" emacs-lisp-mode (font-lock-mode eldoc-mode flycheck-mode smartscan-mode anzu-mode discover-mode auto-highlight-symbol-mode smartparens-mode show-smartparens-mode corfu-mode yas-minor-mode undo-fu-session-mode mise-mode paredit-mode elisp-autofmt-mode rainbow-delimiters-mode highlight-indent-guides-mode beginend-prog-mode) 140625 (nil nil) nil nil ((buffer-display-time 26240 29103 234984 716000) (buffer-file-coding-system . utf-8-unix)) ((mark-ring nil)))
  load-with-code-conversion("/home/fap/.emacs.d/.emacs.desktop" "/home/fap/.emacs.d/.emacs.desktop" t t)
  load("/home/fap/.emacs.d/.emacs.desktop" t t t)
  desktop-read()
  load-with-code-conversion("/home/fap/.emacs" "/home/fap/.emacs" t t)
  load("~/.emacs" noerror nomessage)
  startup--load-user-init-file(#f(compiled-function () #<bytecode -0x108b346d77ae167b>) #f(compiled-function () #<bytecode -0x1f3c61addc0b8a75>) t)
  command-line()
  normal-top-level()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions