zimfw / completion

Enables and configures smart and extensive tab completion.
MIT License
37 stars 10 forks source link

zdumpfile not updating with changes to completion functions #18

Closed wickles closed 7 months ago

wickles commented 1 year ago

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 https://github.com/zimfw/completion/pull/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