`C-x b` results in `Error in post-command-hook (ivy--queue-exihbit): (file-error ...)`
I confirm that...
-
[X] I have searched the issue tracker, documentation, FAQ, Discourse, and Google, in case this issue has already been reported/resolved.
-
[X] I have read "How to Debug Issues", 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
C-x b works and shows the list of buffers
Current behavior
C-x b fails to list buffers, and shows the following error in the minibuffer:
[Error in post-command-hook (ivy--queue-exhibit): (file-error "Opening directory" "Not a directory" "/home/armael/.doom.d/init.el")]
where /home/armael/.doom.d/init.el is the file currently opened.
The *Messages* buffer does not seem to include a more detailed error message; I could not get a backtrace to show up either, even after enabling doom-debug-mode.
Steps to reproduce
This bugs seems to only show up with a specific combination of packages. I tracked it down to the following:
- Start with a fresh doom installation, with the default config
- in
init.el, enableivyinstead ofvertico; disabledoom-dashboard, and disable(default +bindings +smartparens). As far as I can tell, all three changes are required for the bug to manifest. - open a file with emacs, for example
emacs ~/.doom.d/init.el, then typeC-x b.
System Information
https://gist.github.com/Armael/6478254dce17d3272e5080e1ed913f12
This bug shows up in the workspaces function as well. Seems to come from this part of +workspace/switch-to
(ivy-read "Switch to workspace: "
(+workspace-list-names)
:caller #'+workspace/switch-to
:preselect (+workspace-current-name))
Commenting out the :caller part resolves the problem