marlonrichert / zsh-autocomplete

🤖 Real-time type-ahead completion for Zsh. Asynchronous find-as-you-type autocompletion.
MIT License
5.35k stars 149 forks source link

[macos] no completion after a66d6ae6f7e703b1bf5ae57e48a7da3cf307aeab #750

Open oliverlee opened 2 months ago

oliverlee commented 2 months ago

Environment

❯  typeset -p1 VENDOR OSTYPE ZSH_PATCHLEVEL _autocomplete__funcfiletrace
typeset VENDOR=apple
typeset OSTYPE=darwin23.0
typeset ZSH_PATCHLEVEL=zsh-5.9-0-g73d3173
typeset -a _autocomplete__funcfiletrace=(
  /Users/oliver/repos/zsh-autocomplete/zsh-autocomplete.plugin.zsh:4
  /Users/oliver/.zshrc:62
  zsh:0
)

❯  git -C ~autocomplete log --oneline -n1
a66d6ae (HEAD) Rewrite list trimming to cover more edge cases

Steps to reproduce

% cd $(mktemp -d)
% git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git
<output>
% > .zshrc <<EOF
#setopt interactivecomments transientrprompt
PS1='%# '
PS2=
RPS2='%^'
source $PWD/zsh-autocomplete/zsh-autocomplete.plugin.zsh
EOF
% env -i HOME=$PWD PATH=$PATH TERM=$TERM ${TERMINFO:+TERMINFO=$TERMINFO} zsh -d
% b
<no-completions>

Must the interactivecomments option be set? If so, can that be added to the README?

vivek-x-jha commented 1 month ago

Noticed in mine too. Confirming @oliverlee suggestions worked for me:

# .zshrc

setopt interactive_comments
...
Akasiek commented 1 month ago
# .zshrc

setopt interactive_comments
...

Worked like a charm for me!

JanLubojacky commented 1 month ago

Noticed in mine too. Confirming @oliverlee suggestions worked for me:

# .zshrc

setopt interactive_comments
...
* Operating system: 'macOS Sonoma 14.6.1'

* Terminal emulator: iTerm2

Needed this too to make it work using Sonoma 14.7 and iTerm2. Would be great to have this in readme thx!