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

[macos] no completion after a66d6ae6f7e703b1bf5ae57e48a7da3cf307aeab #750

Open
oliverlee opened this issue Sep 5, 2024 · 3 comments
Open
Labels
bug Something isn't working

Comments

@oliverlee
Copy link

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
  • Operating system: 'macOS Sonoma 14.6.1'
  • Terminal emulator: Alacritty + Terminal.app

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?

@oliverlee oliverlee added the bug Something isn't working label Sep 5, 2024
@vivek-x-jha
Copy link

vivek-x-jha commented Sep 6, 2024

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

# .zshrc

setopt interactive_comments
...
  • Operating system: 'macOS Sonoma 14.6.1'
  • Terminal emulator: iTerm2

@Akasiek
Copy link

Akasiek commented Sep 11, 2024

# .zshrc

setopt interactive_comments
...

Worked like a charm for me!

@JanLubojacky
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants