The Problem

The other day, when I started Emacs as usual, the following message appeared in the minibuffer:

Project <Project Name> at <Project Path> cannot be read.

Emacs then became a piece of software that simply displayed a white screen.

I had recently changed the path of this project, so I suspected that might be the cause. I tried modifying/deleting the project path in projectile-known-projects-file, but the situation didn’t improve. I also tried commands like doom sync and doom upgrade, but none of these resolved the issue.

The Solution

After some trial and error, I discovered that the culprit was, surprisingly, treemacs.

Treemacs saves session information in treemacs-persist-file (usually user-emacs-directory/.cache/treemacs-persist). As the name suggests it was treemacs_persist persisting. That was casue of this problem.

Therefore, you can resolve the problem by running

rm ~/.config/emacs/.cache/treemacs-persist # path may vary depending on your environment

I had Treemacs installed but wasn’t really using it, so I removed it from my init file.

Thank you for reading.

Reference

Project .emacs.d at User/x.emacs.d cannot be read. · Issue #586 · Alexander-Miller/treemacs