counsel-ag + wgrep not working (No changes to be performed) #1841
I have two machines, both running Debian and emacs v26.1, with the same
Strangely, for the working setup,
The format in the broken one is different that the first which is (I assume) the problem. I'm confused because I've verified that the versions of the installed packages are the same (other than the missing ivy dependency on the working setup).
What I've tried
Uninstall and re-install
remove .elc files
Edit: Summary of thread for future readers
The root cause of the issue is
The text was updated successfully, but these errors were encountered:
Yup, the version numbers in my
So, in the broken setup I've found in
(defun ivy--occur-insert-lines (cands) "Insert CANDS into `ivy-occur' buffer." (font-lock-mode -1) (dolist (str cands) (setq str (ivy--highlight-fuzzy (copy-sequence str))) (add-text-properties 0 (length str) '(mouse-face highlight help-echo "mouse-1: call ivy-action") str) (insert (if (string-match-p "\\`.[/\\]" str) "" " ") ;; THIS LINE! str ?\n)) <snip>
Which checks to see if the file path begins with
When I have some time I can dig in more to try and identify the root cause. It's really bizarre how two setups that supposedly have the same versions have different behaviour :/
That they are the same does not mean they are the latest.
Thanks, please do.
What is their full M-x
Did some more investigation and I think I found the root of the problem. First some preamble:
Both the same,
So, I discovered that the working setup was using an older version of the code. Specifically, this is the implementation of
(defun ivy--occur-insert-lines (cands) "Insert CANDS into `ivy-occur' buffer." (dolist (str cands) (add-text-properties 0 (length str) `(mouse-face highlight help-echo "mouse-1: call ivy-action") str) (insert str "\n")) (goto-char (point-min)) (forward-line 4))
Notice how it always insert the string starting from column 0.
Now, the broken setup uses the HEAD version:
Which has the check:
In other words, if the candidate (aka. matching file+content) starts with a
The specific command that
This above output is what appears to be passed to the function
@abo-abo I'm not familiar with the
Not directly related to this, but may be too heavyweight for a new issue, I noticed that when using
Edit: In other words, I always want
@basil-conto ah I see, I was confused because there are commits from yesterday which haven't been rebuilt, so maybe its not "every few hours" but "every few days" :)
Edit: It appears the last build "took 16 hours and ended 9 hours ago", and with 1 hour until the next build it seems like the schedule is every ~26 hours. Sorry for all the noise, I wasn't familiar with the Melpa release schedule, thanks for enlightening me :)
Is anyone else having this issue again? My files won't update when using counsel-ag and wgrep but it used to work fine. It says also the wgrep buffer was modified at the end. I also tried using the helm-wgrep package so maybe it is an issue with wgrep, not something in the counsel or swiper.