Zsh-autocomplete: .autocomplete.async.complete.fd-widget:21: completion cannot be used recursively (yet)

Created on 2 Sep 2020  路  14Comments  路  Source: marlonrichert/zsh-autocomplete

Describe the bug

When I set zstyle ':completion:*:default' menu select=1, the following error occurs.

.autocomplete.async.complete.fd-widget:21: completion cannot be used recursively (yet)

The version at the end of July had no problems.

To Reproduce

Steps to reproduce the behavior:

# *Always* test with the following three steps:
$ cd $(mktemp -d)  # Create a temp dir and enter it
$ ZDOTDIR=$PWD HOME=$PWD zsh -df  # Start a subshell without config files
% source path/to/zsh-autocomplete.plugin.zsh
% zstyle ':completion:*:default' menu select=1
% ls -l<DownArrow>

Expected behavior

I can select the completion candidates.

Actual behavior

I cannot select the completion. And this error is displayed.
.autocomplete.async.complete.fd-widget:21: completion cannot be used recursively (yet)

Desktop

  • OS + distribution: ArchLinux
  • Zsh version: sh 5.8.0.2
  • Plugin version: 0de4c97eb77da4a5605a616ccb4053bfce559b06
Bug report

All 14 comments

@yutakatay I cannot reproduce this with the steps you provided. Are you sure you didn't leave something out?

Oh, really? I've checked that and the procedure is correct. I'll try to reproduce it on docker.

OK. I could reproduce on docker.

docker run -it archlinux /bin/bash
pacman -Sy
pacman -S git zsh
zsh
git clone https://github.com/marlonrichert/zsh-autocomplete.git
source zsh-autocomplete/zsh-autocomplete.plugin.zsh
zstyle ':completion:*:default' menu select=1
ls -l<DownArrow>

You should be able to see the error message.

7e801abb8f71# ls -lA
.autocomplete.async.complete.fd-widget:21: completion cannot be used recursively (yet)
7e801abb8f71# ls -lA
-A   list all except . and ..

Sorry, I don't use Docker. :(

Does the problem occur when you use the dev branch?

This error occurs even if I use the dev branch (bae7884331f381db4db038a49f1363e0a6630579).

OK. Let me know if you can figure out why this happens, because I still cannot reproduce it. @yutakatay @srappan

I investigated it by changing a few parameters and settings, but I couldn't find the problem because zsh script is difficult for me.

It definitely reproduces in my environment. I will use this commit (3c7e78daf32f19d3091c088d041942c545d208f1) for a while.

just wanted to add that this is the specific message I see when my themed prompt breaks. I'll let you know if i can narrow it down to what might be causing this.

I will use this commit (3c7e78d) for a while.

Is that the very last commit that works for you? Or can you still find a later one that works? It would help me a lot if you could find the exact point at which this broke.

@windowswithoutborders Are you also using zstyle ':completion:*:default' menu select=1? Or do you have the problem without it? What is the minimal amount of setting with which you can reproduce this?

@yutakatay What is it exactly you鈥檙e trying to accomplish with zstyle ':completion:*:default' menu select=1?

@yutakatay @windowswithoutborders @srappan I was finally able to reproduce it and pushed in a fix on the dev branch. Please git checkout dev and let me know whether it works for you, too.

Great work! I used the dev branch and it seems to have fixed this problem.

Thank you :smile:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

paw-lu picture paw-lu  路  3Comments

romzie picture romzie  路  7Comments

windowswithoutborders picture windowswithoutborders  路  6Comments

cenk1cenk2 picture cenk1cenk2  路  3Comments

pcjmfranken picture pcjmfranken  路  5Comments