Error starting emacs

What happened?

After updating doom today I can’t start emacs anymore. Can’t even exit with regular keystrokes and have to kill -9 to terminate.

Please help!

System information


Loading data dump...

I can’t reproduce this. Try deleting projectile and project.el from $EMACSDIR/.local/straight/{repo,build-*} then resync:

rm -rf ~/.config/emacs/.local/straight/{repos,build-*}/{project,projectile}
doom sync

Thanks for your quick response @hlissner! Awesome as always!

Tried your suggestion but the problem persists.

I was able to narrow the issue to one project. If I start emacs inside that project I get the error. If I start outside emacs start normally.

So I guess it’s related to something specific in that working tree. I tried removing ~/config/emacs/.local/cache but with no result.

Any suggestion?

Try deleting ~/.config/emacs/.local/etc/projects too.

Nope… same result… :frowning_face:

Here’s one more thing to try:

;;; add to the end of $DOOMDIR/init.el
(add-hook! 'projectile-mode-hook
  (remove-hook 'buffer-list-update-hook #'projectile-track-known-projects-find-file-hook)
  (add-hook 'projectile-find-dir-hook #'projectile-track-known-projects-find-file-hook t)
  (add-hook 'dired-before-readin-hook #'projectile-track-known-projects-find-file-hook t t))

Yep! That dit it!

Should be fixed now: fix: recursive load errors on lib/projects.el · doomemacs/doomemacs@83fedf1 · GitHub

Awesome! You’re the man @hlissner !