Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certain command and option combinations cause "do you wish to see all XX possibilites" instead of the nice menu #291

Closed
mike2point71 opened this issue Jun 14, 2021 · 10 comments
Labels
help wanted Extra attention is needed

Comments

@mike2point71
Copy link

mike2point71 commented Jun 14, 2021

  • zsh-autocomplete version: a1ee18e
  • Zsh version: zsh-5.8-0-g77d203f
  • Framework: oh-my-zsh
  • Plugin manager: none
  • Operating system: darwin20.0
  1. Paste the following into your terminal and Enter:
    cd $(mktemp -d)
    git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git
    print '
    PS1="%# " PS2="  " RPS2="< %^"; setopt transientrprompt
    source zsh-autocomplete/zsh-autocomplete.plugin.zsh
    ' > .zshrc
    exec env -i HOME=$PWD TERM=$TERM SHELL=$SHELL $SHELL -d
  2. In the shell session created above, try to reproduce your problem and
    record all of it here:
    Last login: Sun Jun 13 00:13:29 on ttys009
    ❯ cd $(mktemp -d)
    _zlua_precmd:1: exec format error: /Users/username/github/czmod/czmod
    ❯ git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git
    Cloning into 'zsh-autocomplete'...
    remote: Enumerating objects: 59, done.
    remote: Counting objects: 100% (59/59), done.
    remote: Compressing objects: 100% (54/54), done.
    remote: Total 59 (delta 0), reused 29 (delta 0), pack-reused 0
    Receiving objects: 100% (59/59), 1.60 MiB | 336.00 KiB/s, done.
    ❯ print '
    PS1="%# " PS2="  " RPS2="< %^"; setopt transientrprompt
    source zsh-autocomplete/zsh-autocomplete.plugin.zsh
    ' > .zshrc
    ❯ exec env -i HOME=$PWD TERM=$TERM SHELL=$SHELL $SHELL -d
    % rg -C
    zsh: do you wish to see all 36 possibilities (38 lines)? 
@mike2point71 mike2point71 added the bug Something isn't working label Jun 14, 2021
@marlonrichert
Copy link
Owner

It's a bug in Zsh: https://www.zsh.org/mla/workers/2021/msg00304.html

@mike2point71
Copy link
Author

You're the man. Love your plugin, and I can't believe you were able to respond with the exact thing so fast.

@ghost
Copy link

ghost commented Jul 1, 2021

hi. getting stuck with the same error when i mainly type "cd". once I type "c" I get the do you wish to see all X possibilities. Is there any way to force certain keywords like "cd" to not attempt a menu popup?

@marlonrichert
Copy link
Owner

marlonrichert commented Jul 1, 2021

@hoteit I would like to be able reproduce that. Can you post a minimal test case?

@marlonrichert marlonrichert added the help wanted Extra attention is needed label Jul 18, 2021
@marlonrichert
Copy link
Owner

If anyone wants to submit a patch to Zsh for this, that would be great.

@marlonrichert marlonrichert removed the bug Something isn't working label Jul 18, 2021
@shtolfensie
Copy link

I get the "do you wish to see all ..." prompt on any larger list of possible suggestions - e.g., after typing sudo, git, man. It started happening in commit 2c22ed0.
It happens on a fresh install, manual sourcing, clean shell (as described in the bug report template). On the previous commit it works as I would expect (shows an incomplete list with (MORE) at the bottom.

@marlonrichert
Copy link
Owner

marlonrichert commented Jul 21, 2021

@shtolfensie OK, I'm able to reproduce that. I'll look into it.

@marlonrichert marlonrichert added the bug Something isn't working label Jul 21, 2021
marlonrichert added a commit that referenced this issue Jul 21, 2021
Fixes a problem mentioned in issue #291.
@marlonrichert
Copy link
Owner

Fixed.

@marlonrichert marlonrichert removed the bug Something isn't working label Jul 21, 2021
@marlonrichert
Copy link
Owner

Just to be clear, I fixed the problem pointed out by shtolfensie in their comment, not the whole issue.

@marlonrichert
Copy link
Owner

This has now been fixed in Zsh with zsh-users/zsh@b4dff9a. No idea when that will be released.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants