Closed matthuszagh closed 4 years ago
matthuszagh notifications@github.com writes:
Expected behavior
M-x helm-find-files should display the current files on disk.
It does, you have to wait a a few ms between each sessions when
helm-ff-cache-mode
is enabled, otherwise hit C-c C-u.
Actual behavior (from emacs-helm.sh if possible, see note at the bottom)
Find-files shows slightly outdated file list. I haven't been able to figure out when the file update occurs,
Yes, helm-find-files is now caching its candidates, see the section "Helm-find-files is using a cache" in helm-find-files documentation (C-h m) you will find directions on how to see when the cache is refreshed.
-- Thierry
You can also set helm-ff-cache-mode-post-delay
and helm-ff-refresh-cache-delay
to 0.3 (I do this in my config).
Yep, this does indeed work as expected. Sorry for the false alarm and thanks for pointing me to the documentation!
Maybe also you want to customize helm-ff-keep-cached-candidates
to not
keep cache between helm sessions, if you do so use customize and not
setq to do this.
-- Thierry
Expected behavior
M-x helm-find-files
should display the current files on disk.Actual behavior (from
emacs-helm.sh
if possible, see note at the bottom)Find-files shows slightly outdated file list. I haven't been able to figure out when the file update occurs, but calling
directory-files
in the directory where a file update occurs seems to update the list for helm too.EDIT actually,
directory-files
mostly doesn't seem to help, even thoughdirectory-files
does return the correct file list.Steps to reproduce (recipe)
In
*scratch*
:(this should be basically equivalent to
emacs-helm.sh
which I had trouble running (I believe that's related to the fact I use nix, but not completely sure).create mwe.org
save to filesystem:
Running
helm-find-files
again showsmwe.org
. But, now if I delete it withhelm-find-files
again, use the persistent action delete option, then runhelm-find-files
once again i still seemwe.org
.Now if I run
mwe.org
does not display. Further invocations ofhelm-find-files
do not showmwe.org
.Backtraces if any (
M-x toggle-debug-on-error
)Describe versions of Helm, Emacs, operating system, etc.
In addition to below, I was getting the same issue on 27.1.
Output of relevant info in
report-emacs-bug
:Are you using
emacs-helm.sh
to reproduce this bug? (yes/no):No, but see above. It should be basically equivalent except
straight
is also loaded.Are you using Spacemacs? (yes/no):
No.
IMPORTANT NOTE
Helm provides a script named
emacs-helm.sh
which runs Helm in a neutral environment: no other packages and only minimal settings.When possible, use it to reproduce your Helm issue to ensure no other package is interfering.
To run it, simply switch to the directory where Helm is installed and call
./emacs-helm.sh
. If necessary you can specify emacs executable path on command line with "-P" option.Thanks.