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

zsh-autocomplete does not work without interactivecomments enabled #761

Open
visigoth opened this issue Oct 20, 2024 · 0 comments
Open

zsh-autocomplete does not work without interactivecomments enabled #761

visigoth opened this issue Oct 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@visigoth
Copy link

Environment

% typeset -p1 VENDOR OSTYPE ZSH_PATCHLEVEL _autocomplete__funcfiletrace
typeset VENDOR=apple
typeset OSTYPE=darwin21.6.0
typeset ZSH_PATCHLEVEL=zsh-5.9-0-g73d3173
typeset -a _autocomplete__funcfiletrace=(
  /Users/shaheen/Library/Caches/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-marlonrichert-SLASH-zsh-autocomplete/zsh-autocomplete.plugin.zsh:4
  /Users/shaheen/.zshrc:6
  zsh:0
)
% git -C /Users/shaheen/Library/Caches/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-marlonrichert-SLASH-zsh-autocomplete/  log --oneline -n1
762afac (HEAD -> main, tag: 24.09.04, origin/main, origin/HEAD) Add note to Readme about usage of `%`
  • Operating system: macos sonoma 14.6.1

  • Terminal emulator: attempted in Kitty 0.34.1 as well as mac Terminal.app 2.14 (453)

Steps to reproduce

% cd $(mktemp -d)
% git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git
<output>
% > .zshrc <<EOF
# N.B. without interactivecomments
#setopt 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
% sft
# no autocomplete options
% setopt interactivecomments
% sft
# autocomplete works
  • Contents of ~autocomplete-log/YYYY-MM-DD.log (click to expand)

last 30 lines of the file (it repeats a lot)

compadd:57: closing brace expected
compadd:52: parse error in command substitution
autocomplete:compadd:old:57: closing brace expected
autocomplete:compadd:old:52: parse error in command substitution
autocomplete:compadd:old:57: closing brace expected
autocomplete:compadd:old:52: parse error in command substitution
autocomplete:compadd:old:57: closing brace expected
autocomplete:compadd:old:52: parse error in command substitution
autocomplete:compadd:old:57: closing brace expected
autocomplete:compadd:old:52: parse error in command substitution
compadd:57: closing brace expected
compadd:52: parse error in command substitution
compadd:57: closing brace expected
compadd:52: parse error in command substitution
compadd:57: closing brace expected
compadd:52: parse error in command substitution
compadd:57: closing brace expected
compadd:52: parse error in command substitution
compadd:57: closing brace expected
compadd:52: parse error in command substitution
autocomplete:compadd:old:57: closing brace expected
autocomplete:compadd:old:52: parse error in command substitution
autocomplete:compadd:old:57: closing brace expected
autocomplete:compadd:old:52: parse error in command substitution
autocomplete:compadd:old:57: closing brace expected
autocomplete:compadd:old:52: parse error in command substitution
autocomplete:compadd:old:57: closing brace expected
autocomplete:compadd:old:52: parse error in command substitution
compadd:57: closing brace expected
compadd:52: parse error in command substitution
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

1 participant