zsh-syntax-highlighting: "_zsh_highlight_call_widget: maximum nested function level reached; increase FUNCNEST?" error when plugin is used along with zsh-autocomplete
Hi
Thanks for your work. I like the plugin.
One issue I have is that it doesn’t play nice with the plugin zsh-autocomplete. I get the error below when I execute most (all?) commands it seems.

I commented out all other plugin/scripts in my zshrc and found that it was by removing zsh-autocomplete made the error go away. See excerpt below:
#...
# Plugins
source ~/zsh-plugins/zsh-autocomplete/zsh-autocomplete.plugin.zsh
# leave as last plugin
source ~/zsh-plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
I have the latest of both plugins. You can find my entire zshrc in this gist
I am running zsh 5.8 on ubuntu 20.04.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 15 (8 by maintainers)
@robole Thanks for the update. Closing, but reopen if it recurs.
hi @marlonrichert & @danielshahaf
yesterday, the issue was persistent. today, there is no issue! the order of the 2 plugins does not reproduce the issue! 😅
i followed the troubleshooting section of the
zsh-autocompleteREADME yesterday before I filed this issue. So, the completion cache was cleared and I ran zsh without global config also. It didn’t impact it then.i cant really point out something that might have caused it, but maybe it was related to caching by the fact that today when i rebooted my machine, it was fine. otherwise, i did not change anything from yesterday.
thanks for your help. i hope it was a freak once-off and it does not reoccur.