marlonrichert / zsh-autocomplete

🤖 Real-time type-ahead completion for Zsh. Asynchronous find-as-you-type autocompletion.
MIT License
5.02k stars 143 forks source link

Hangs when offline #717

Open lvisb opened 2 months ago

lvisb commented 2 months ago

I noticed that if I'm offline, the terminal never provides me with the prompt. It stays in a loading state. I use oh-my-zsh as a plugin manager.

Q. How do I know if it's the zsh-autocomplete causing this? A. If I remove it from the list of plugins and I'm offline, the terminal loads normally.

Example of my plugin list: plugins=(git zsh-autocomplete zsh-autosuggestions zsh-syntax-highlighting)

I've tried disabling the auto-update of oh-my-zsh, but it didn't have any effect. Do you have any idea if it's something in zsh-autocomplete or in oh-my-zsh?

danielsilva010 commented 1 month ago

I use it on MacOS offline, no plugins zsh-autocomplete runs perfectly

polyzen commented 1 month ago

This occurs for me when a network share is unavailable at boot. I have them set to mount when I try to access them, which for some reason zsh-autocomplete immediately does after zsh starts.

If the network share becomes unavailable after it was already mounted, zsh-automplete will also cause new terminals to hang.

polyzen commented 1 month ago

This occurs despite if the share is mounted under $HOME or /mnt.