antigen icon indicating copy to clipboard operation
antigen copied to clipboard

Fix deferred compdef between sourcing antigen and antigen apply

Open segevfiner opened this issue 3 years ago • 6 comments

Using some obscure Zsh syntax, check https://zsh.sourceforge.io/Doc/Release/Expansion.html#Parameter-Expansion-Flags for documentation about it.

Fixes #736

segevfiner avatar Apr 05 '22 07:04 segevfiner

This seems to only fix the no/stale cache case, when the cache is enabled, there is no compdef between sourcing antigen and apply, during applying the cache and after it is set to a no-op compdef and only set to the real compdef after the delayed compinit runs on the first prompt.

segevfiner avatar Apr 13 '22 13:04 segevfiner

Modified so it also fixes the caching case.

segevfiner avatar Apr 13 '22 14:04 segevfiner

Can this be reviewed and unblocked for merge please. Impacted from https://github.com/zsh-users/antigen/issues/736

mr-narender avatar Aug 02 '22 01:08 mr-narender

Sadly this project seems unmaintained for quite some time and the original maintainers haven't appointed anyone new to take over.

segevfiner avatar Aug 22 '22 21:08 segevfiner

If you want to manually patch your local antigen install: antigen-deferred-compdef-fix.patch.tar.gz

patch -p2 -i antigen-deferred-compdef-fix.patch

segevfiner avatar Aug 25 '22 17:08 segevfiner

Thank you for your fix @segevfiner! It's a pity this project no longer seems maintained.

donhector avatar Apr 20 '23 23:04 donhector