zsh-users / antigen

The plugin manager for zsh.
http://antigen.sharats.me
MIT License
8.01k stars 279 forks source link

Slow cache problem with autocompeletion with external plugins #723

Closed cenk1cenk2 closed 3 years ago

cenk1cenk2 commented 3 years ago

Description

Cache needs to be reset everytime a new terminal has been created when using external complete plugins like zsh-autocompelete.

ezgif com-gif-maker (1)

https://github.com/marlonrichert/zsh-autocomplete/issues/126

Steps to reproduce

Minimal steps to reproduce this behavior. Example:

1 - Open terminal
2 - git<TAB>
3 - 

Expected behavior:

- Tab completion of `cd` command.

Software version

Configuration

~/.zshrc file: managed by ansible + antigen with plugins

More information

Screenshot or any other information you may find relevant to troubleshoot the issue.

The issue is described more here: https://github.com/marlonrichert/zsh-autocomplete/issues/126

I have narrowed down the issue to be with antigen cache. Whenever I run antigen reset after creating a new instance of shell or a tmux instance, the issue goes away.

Disabling the cache gets read of the behavior.

cenk1cenk2 commented 3 years ago

Okay with further notice cleaning every .zwc file I have found, this problem seems to be gone for good. Closing the issue.