You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using counsel editing a buffer in a remote machine with TRAMP and counsel works fine, then I try to start, counsel-rg but the machine doesn't have rg installed.
After this point when I try to open a buffer C-x C-f, I just get "No buffer named counsel" in the status an d nothing happens. I'm using emacs 25.3.1 counsel 20180328.1326 from MELPA
I enable this but don't see any backtrace when the error happens
Is there no *Backtrace* buffer? If not, that is very strange; I don't know what could be demoting the error to a mere message.
I am unable to reproduce this issue on Emacs 25 and 27 starting from make plain. Without further details, e.g. a more detailed recipe starting from emacs -Q or make plain, I'm unsure how to further debug this.
The most obvious (in the sense of standing out, not obviously being the culprit) source of the error message, which is generated by function nsberror in src/buffer.c, is the call to kill-buffer in a recently refactoredcounsel--async-command. This call to kill-buffer is guarded by get-buffer, however, which is what kill-buffer itself predicates the error on.
I get the exact same error as @godkbg. After run in my casecounsel-projectile-ag in a TRAMP buffer, I get Error in post-command-hook (ivy--queue-exhibit): (error "No buffer named *counsel*")
And from that point onwards, whenever I call counsel-find-file, I get byte-code: No buffer named *counsel* and cannot do anything.
Based on the suggestion of godkbg, I installed counsel and swiper from melpa-stable. When I use that and then run counsel-ag, I get error code 127 in the completion area, as if it were a completion candidate. It is not in the *messages* area. Maybe that can help you. After that, counsel-find-file stays usable at least, compared to the version on melpa. I can live without counsel-ag, I just accidentally call the command due to muscle memory. So I will stay with stable for now.
My emacs version is older, because I using my work PC in my institute, which runs Ubuntu16.04, with:
GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2017-09-20 on lcy01-07, modified by Debian.
And ag version 0.31.0, in case that might be important.
same issue with tramp. It is working but after running an counsel-rg command, I get in messages:
Debug on Error enabled globally
Error in post-command-hook (ivy--queue-exhibit): (error "No buffer named *counsel*")
Quit
tramp-file-name-handler: No buffer named *counsel* [2 times]
Quit [6 times]
tramp-file-name-handler: No buffer named *counsel* [2 times]
Quit [2 times]
GNU Emacs 25.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.22.19)
melpa: counsel 20180409.1120 installed
Same issue here. Happened when I tried to run counsel-grep on a remote machine. After that I cannot open files on the remote machine. Same error as above. Calling (tramp-cleanup-all-connections) fixes the counsel.
Thanks, I can reproduce this with the following recipe:
make emacs=emacs25 plain
C-xC-f//ssh:host:fileRET
M-xcounsel-grepRETfo
This temporarily displays an error in the echo area and returns to completion, but further typing in the minibuffer does nothing. The following appears in the *Messages* buffer:
Error in post-command-hook (ivy--queue-exhibit): (error "No buffer named *counsel*")
Both local and remote hosts are x86_64-pc-linux-gnu, specifically running Debian.
M-xemacs-versionRET:
GNU Emacs 25.2.1
(x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2018-05-07, modified by Debian
I cannot reproduce this issue with make emacs=emacs26 plain or make plain, where the respective Emacs versions are
GNU Emacs 26.1
(build 2, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2018-05-06
and
GNU Emacs 27.0.50
(build 24, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2018-05-11
For both of these Emacs versions, step (3) results in a single candidate error code 2, but no other post-command-hook/TRAMP errors occur or impede further find-file operations.
So, the quickest solution to this invasive problem is to update Emacs to 26, which is currently in the RC stage and will soon be released, but I will try to look into fixing the issue for earlier Emacs versions as well if no-one beats me to it.
Activity
basil-conto commentedon Apr 5, 2018
Could you please send the (redacted, if necessary) backtrace obtained by reproducing the error after M-x
toggle-debug-on-errorRET?pepone commentedon Apr 5, 2018
I enable this but don't see any backtrace when the error happens
basil-conto commentedon Apr 5, 2018
Is there no
*Backtrace*buffer? If not, that is very strange; I don't know what could be demoting the error to a mere message.I am unable to reproduce this issue on Emacs 25 and 27 starting from
make plain. Without further details, e.g. a more detailed recipe starting fromemacs -Qormake plain, I'm unsure how to further debug this.The most obvious (in the sense of standing out, not obviously being the culprit) source of the error message, which is generated by function
nsberrorinsrc/buffer.c, is the call tokill-bufferin a recently refactoredcounsel--async-command. This call tokill-bufferis guarded byget-buffer, however, which is whatkill-bufferitself predicates the error on.pepone commentedon Apr 7, 2018
no Backtrace buffer here, just the fact that after run counsel-rg cannot longer open files with counsel
basil-conto commentedon Apr 8, 2018
Again, I can neither reproduce this, nor guess how it can be possible.
What is your M-x
emacs-versionRET (i.e. includingsystem-type)?Have you tried reproducing this from
emacs -Qor reinstalling Ivy and Counsel, just in (improbable) case there's something stale lying around?godkbg commentedon Apr 17, 2018
Same problem here. No Backtrace buffer.
When I ran counsel-ag on Tramp, I got "Error in post-command-hook (ivy--queue-exhibit): (error "No buffer named counsel")"
On melpa-stable, there's no this error.
My emacs-version is
|GNU Emacs 25.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.8) of 2018-03-21
meliache commentedon Apr 24, 2018
I get the exact same error as @godkbg. After run in my case
counsel-projectile-agin a TRAMP buffer, I getError in post-command-hook (ivy--queue-exhibit): (error "No buffer named *counsel*")And from that point onwards, whenever I call
counsel-find-file, I getbyte-code: No buffer named *counsel*and cannot do anything.Based on the suggestion of godkbg, I installed counsel and swiper from melpa-stable. When I use that and then run
counsel-ag, I geterror code 127in the completion area, as if it were a completion candidate. It is not in the*messages*area. Maybe that can help you. After that,counsel-find-filestays usable at least, compared to the version on melpa. I can live withoutcounsel-ag, I just accidentally call the command due to muscle memory. So I will stay with stable for now.My emacs version is older, because I using my work PC in my institute, which runs Ubuntu16.04, with:
GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2017-09-20 on lcy01-07, modified by Debian.And
agversion0.31.0, in case that might be important.apmanol commentedon May 14, 2018
Hello all,
same issue with tramp. It is working but after running an
counsel-rgcommand, I get in messages:hyOzd commentedon May 15, 2018
Same issue here. Happened when I tried to run
counsel-grepon a remote machine. After that I cannot open files on the remote machine. Same error as above. Calling(tramp-cleanup-all-connections)fixes the counsel.basil-conto commentedon May 15, 2018
Thanks, I can reproduce this with the following recipe:
make emacs=emacs25 plain//ssh:host:fileRETcounsel-grepRETfoThis temporarily displays an error in the echo area and returns to completion, but further typing in the minibuffer does nothing. The following appears in the
*Messages*buffer:Both local and remote hosts are
x86_64-pc-linux-gnu, specifically running Debian.M-x
emacs-versionRET:git rev-parse HEAD: be6db35.I cannot reproduce this issue with
make emacs=emacs26 plainormake plain, where the respective Emacs versions areand
For both of these Emacs versions, step (3) results in a single candidate
error code 2, but no otherpost-command-hook/TRAMP errors occur or impede furtherfind-fileoperations.basil-conto commentedon May 15, 2018
So, the quickest solution to this invasive problem is to update Emacs to 26, which is currently in the RC stage and will soon be released, but I will try to look into fixing the issue for earlier Emacs versions as well if no-one beats me to it.
counsel.el: Explicitly create async command buffer