Open jojojames opened 5 years ago
I'm sorry, but I don't think the description is clear enough.
counsel-rg
adds output to that window
What output? Have you typed in a search string which resulted in search results, or are you referring to e.g. counsel-rg
's 3 chars more
prompt?
I've seen this happen even when I don't manually select a window sometimes (not all the times) with
counsel-rg
or `counsel-fzf.
Again, the precise set of steps and outcome are not clear. Can you please provide more details and/or screenshots/screencast?
For instance, here's what I did to try to reproduce this:
make plain
.counsel-fzf
RET
*scratch*
buffer
*scratch*
ivy
ivy
in their name*scratch*
buffer
*scratch*
Here's a more programmatic example:
make plain
(progn (setq unread-command-events
(listify-key-sequence "\C-xo"))
(call-interactively #'counsel-fzf))
*scratch*
is selected, but no additional text has been printed to itReplacing (listify-key-sequence "\C-xo")
with something more elaborate like (listify-key-sequence "ivy\C-xo\C-xo")
still works as expected.
Similarly, counsel-rg
seems to behave as expected:
make plain
3 chars more
is displayed*scratch*
*scratch*
ivy
ivy
*scratch*
buffer
*scratch*
And the same can be seen with e.g.
(progn (setq unread-command-events
(listify-key-sequence "ivy\C-xo\C-xo"))
(call-interactively #'counsel-rg))
So I don't exactly understand what the issue is, or how to reproduce it.
What output? Have you typed in a search string which resulted in search results, or are you referring to e.g. counsel-rg's 3 chars more prompt?
Yes 'asdf' will do. Of course, the search string will be dependent on whatever your filesystem may look like.
Again, the precise set of steps and outcome are not clear.
It happens 'every so often' so I'm not going to be able to provide a list of steps for that case but I'd expect both cases to be symptomatic of the same issue.
Can you please provide more details and/or screenshots/screencast?
Yeah.
https://www.dropbox.com/s/zdojsha800quiw2/counsel_bug.mov?dl=0
Again, the precise set of steps and outcome are not clear. Can you please provide more details and/or screenshots/screencast?
To clarify, for the second case, the outcome (the search result output of counsel-* being streamed to the selected-window/buffer) is the same as the first case, although I have no idea how to repro the second case.
Can you please provide more details and/or screenshots/screencast?
Yeah.
https://www.dropbox.com/s/zdojsha800quiw2/counsel_bug.mov?dl=0
Wow, I didn't expect such bad behaviour. :) This has never happened to me, and I'm worried it might be hard to debug. It may even be OS-specific. Any programmatic reproduction recipe you can come up with will prove very helpful.
Does the issue occur in the absence of other packages except Ivy/Swiper/Counsel? I.e. can you reproduce the issue from emacs -Q
followed by manually loading only Ivy/Swiper/Counsel? If not, there may be some other package you have installed that is interfering.
What is your M-xemacs-version
RET?
Happens on both:
GNU Emacs 26.1 (build 1, x86_64-apple-darwin14.5.0, NS appkit-1348.17 Version 10.10.5 (Build 14F2511)) of 2018-05-30
(Version of emacs -Q) GNU Emacs 27.0.50 (build 1, x86_64-apple-darwin16.7.0, NS appkit-1504.83 Version 10.12.6 (Build 16G29)) of 2018-08-09
I.e. can you reproduce the issue from emacs -Q followed by manually loading only Ivy/Swiper/Counsel?
The video/recipe is starting from emacs -Q.
The video/recipe is starting from
emacs -Q
.
But you call package-initialize
, no? This will evaluate the autoloads of all installed third-party packages, potentially (even if only by a small chance) interfering with the recipe.
That's a good point. I removed all my packages from my elpa directory and the problem persists.
Extra datapoint: I tried going back in commit history to when counsel-rg was introduced and it still repros there so I don't think this is a regression. I believe it also repros on emacs 25 On MacOS Sierra.
I'm surprised no one else is seeing this on OSX!
Another data point which could be related (I'm on OS X):
This issue isn't always reproducible, but once I get this issue, I can't get counsel-rg/counsel-git-grep to work again without restarting emacs.
Please test if the issue is still there.
I confirm it is still there.
The repro steps here don't repro anymore for me but I trust @mookid 's judgement in #1857.
I suggest closing this for now.
@mookid OK, closing.
Thanks, all.
This is a manual repro of output being added to another window other than the main ivy window. I've seen this happen even when I don't manually select a window sometimes (not all the times) with counsel-rg or counsel-fzf.