zsh-users / zsh-autosuggestions

Fish-like autosuggestions for zsh
MIT License
30.43k stars 1.85k forks source link

Regular tab completion stops working and errors #509

Open oduhaney opened 4 years ago

oduhaney commented 4 years ago

After installing a enabling the auto suggestion my regular tab completion no longer works, for example if I type cd and press tab it does now show the list of files and folders I can select. if I uncomment out the line in .zshrc #source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh then my tab completion starts working again.

also when my iterms loads up I get a repeated error of_setup:37: compstate: assignment to invalid subscript range (eval):zle:1: not enough arguments for -C

Maverun commented 2 years ago

Same here, I am facing this issues as well, Any idea?

timomeh commented 3 months ago

I had the same behavior (tab completion no longer working, "not enough arguments" error message) and found a solution:

setopt EXTENDED_GLOB was the culprit. Removing it fixed it.

In my case the option was set via the https://github.com/zimfw/environment plugin. I copy-pasted the plugin's code and commented out the affected line.

Calling unsetopt EXTENDED_GLOB after loading the environment plugin didn't work for me.