zimfw/completion

zdumpfile not updating with changes to completion functions

wickles opened this issue · 0 comments

  • I've checked the existing issues and I'm not duplicating a report.
  • I'm using the latest version of zimfw.
  • I've checked the Changelog and I'm not being affected by documented changes.
  • I've checked the 📢 Announcements and I'm not being affected by announced changes.
  • I was able to reproduce the issue with a clean installation of Zim.
  • I've pasted the output of zimfw info below.

Describe the bug

My .zcompdump file is not updating with new zsh completion functions, so my completions are not updating until I manually delete it.

I noticed that .zcompdump.dat is not tracking any completion functions -- it contains nothing except the expanded ${ZSH_VERSION} string (shows in vim as 5.9^@^@). If I understand the script correctly, with the change due to #12, it is supposed to track changes to completion functions in this .dat file so that it can delete the dump file.

The problem seems to be this line where it tries to get a list of all completion functions.

zcomps=(${^fpath}/^([^_]*|*~|*.zwc)(N))

When I check this list it is empty. I guess this is some weird zsh glob/regex thing but it does not seem to be matching the intended patterns.

zimfw info

zimfw version:        1.11.3 (built at 2023-02-26 00:43:41 UTC, previous commit is 6a24459)
OSTYPE:               darwin22.0
TERM:                 xterm-256color
TERM_PROGRAM:         iTerm.app
TERM_PROGRAM_VERSION: 3.5.0beta10
ZIM_HOME:             /Users/me/.zim
ZSH_VERSION:          5.9