zsh-autocomplete: _main_complete.post:12 command not found and bad file descriptor.

  • zsh-autocomplete version: 3a20f699929d1e3a0a9285f3ab3c94b23200fa90
  • Zsh version: zsh 5.8 (x86_64-apple-darwin20.0)
  • Framework: None
  • Plugin manager: Znap
 # Make sure you always test with the `main` branch.
$ git -C /path/to/zsh-autocomplete switch main

# Update to the latest commit.
$ git -C /path/to/zsh-autocomplete pull

# Create a temp dir and enter it.
$ cd $(mktemp -d)

# Restart Zsh without config files in this dir.
$ ZDOTDIR=$PWD HOME=$PWD exec zsh -f

# Source the plugin.
% source /path/to/zsh-autocomplete/zsh-autocomplete.plugin.zsh

# Test and document the steps that reproduce the problem.

$ ls
$ ls -la
 <up-arrow> 
Phucs-MacBook-Air% .autocomplete._main_complete:135: command not found: _autocomplete.history_lines
_autocomplete._main_complete.post:12: command not found: _autocomplete.unambiguous

Originally I was preparing to report conflict when using this with zsh-autosuggestions, but I discover this bug even before sourcing zsh-autosuggestions. The original error was:

_zsh_autosuggest_async_request:zle:9: No handler installed for fd 16
$ l
## Every keystroke afterward
.autocomplete.async.complete.fd-widget:26: 16: bad file descriptor

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 21 (17 by maintainers)

Commits related to this issue

Most upvoted comments

Ok either I’m stupid or what but:

  • The minimal temp env above work fines.
  • So after I remove the ~/.cache folder, quit terminal and restart the problem still persists, even after I quit and restart multiple time.
  • I removed the .cache folder again, and now I go to my config and commented out everything.
  • I have been adding slowly adding back line by line of my entire config to see when will the problem show up.
  • I added the whole thing back and the problem still not show up.

So … I don’t know, probably something to do with the cache. Sorry for wasting your time and thank for your help. Maybe you can add the remove cache command to the reproducible template.