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

Prompt slows down/freezes while typing #751

Open
josevelaz opened this issue Sep 10, 2024 · 1 comment
Open

Prompt slows down/freezes while typing #751

josevelaz opened this issue Sep 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@josevelaz
Copy link

josevelaz commented Sep 10, 2024

Environment

% typeset -p1 VENDOR OSTYPE ZSH_PATCHLEVEL _autocomplete__funcfiletrace

typeset VENDOR=apple
export OSTYPE=darwin23.0
typeset ZSH_PATCHLEVEL=zsh-5.9-0-g73d3173
typeset -a _autocomplete__funcfiletrace=(
  /Users/josevelazquez/marlonrichert/zsh-autocomplete/zsh-autocomplete.plugin.zsh:4
  /Users/josevelazquez/.zshrc:34
  /Users/josevelazquez/znap/functions/.znap.source:37
  /Users/josevelazquez/znap/functions/znap:27
  /Users/josevelazquez/.zshrc:15
  zsh:0
)

% git -C ~autocomplete log --oneline -n1

762afac (grafted, HEAD -> main, tag: 24.09.04, origin/main, origin/HEAD) Add note to Readme about usage of `%`
  • Operating system:
  • Terminal emulator:

Steps to reproduce

% cd $(mktemp -d)
% git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git

Cloning into 'zsh-autocomplete'...
remote: Enumerating objects: 53, done.
remote: Counting objects: 100% (53/53), done.
remote: Compressing objects: 100% (51/51), done.
remote: Total 53 (delta 0), reused 31 (delta 0), pack-reused 0 (from 0)
Receiving objects: 100% (53/53), 1.64 MiB | 2.78 MiB/s, done.

% > .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
% npm
-- Had to do ^C to kill, due to freeze
Killed by signal in _npm after 1s
Contents of ~autocomplete-log/YYYY-MM-DD.log (click to expand)
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
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
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
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
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
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
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
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
@josevelaz josevelaz added the bug Something isn't working label Sep 10, 2024
@filiptrplan
Copy link

For anyone searching for a solution: #736 (comment)

It seems that checking out back to that commit fixes the performance problems for me.

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

2 participants