-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Erratic behavior of zcompile with zsh/param/private #3
Comments
I don't just claim it, I can actually demonstrate it in a reproducible way: % cd $(mktemp -d)
git clone --depth 1 -- https://github.com/agkozak/zcomet.git $PWD/.zcomet/bin
> .zshrc <<EOF
PS1="%# " PS2=" " RPS2="< %^"; setopt transientrprompt
source $PWD/.zcomet/bin/zcomet.zsh
zcomet load marlonrichert/zsh-autocomplete
EOF
env -i HOME=$PWD ZDOTDIR=$PWD FPATH=$FPATH TERM=$TERM zsh -d
/tmp/tmp.EZGp1Vxc1f/
Cloning into '/tmp/tmp.EZGp1Vxc1f/.zcomet/bin'...
remote: Enumerating objects: 25, done.
remote: Counting objects: 100% (25/25), done.
remote: Compressing objects: 100% (21/21), done.
remote: Total 25 (delta 2), reused 13 (delta 2), pack-reused 0
Receiving objects: 100% (25/25), 511.18 KiB | 412.00 KiB/s, done.
Resolving deltas: 100% (2/2), done.
Cloning marlonrichert/zsh-autocomplete:
Cloning into '/tmp/tmp.EZGp1Vxc1f/.zcomet/repos/marlonrichert/zsh-autocomplete'...
remote: Enumerating objects: 3247, done.
remote: Counting objects: 100% (950/950), done.
remote: Compressing objects: 100% (488/488), done.
remote: Total 3247 (delta 654), reused 729 (delta 451), pack-reused 2297
Receiving objects: 100% (3247/3247), 4.18 MiB | 1.33 MiB/s, done.
Resolving deltas: 100% (2289/2289), done.
(anon):22: bad pattern: funcs=(\n ~zsh-autocomplete/functions/.autocomplete.*~*.zwc(N-.:a)\n )
Cannot source /tmp/tmp.EZGp1Vxc1f/.zcomet/repos/marlonrichert/zsh-autocomplete/zsh-autocomplete.plugin.zsh.
% zcompile -R .zcomet/repos/marlonrichert/zsh-autocomplete/zsh-autocomplete.plugin.zsh
% exec zsh -d
% Now |
Or rather, please read my comment on the same bug in Z Init. |
@jack1142 Thanks for your patience. I'm sure I'll have this fixed soon. @marlonrichert You're right to point to the compiled wordcode as the source of the problem, and your demonstration works for me. But even changing my original |
Sorry, I missed that you were already using the |
Never mind: On further investigation, it turns out that, actually, the only thing that fixes the problem, for both Z Init and Z Comet, is to |
Very mysterious. I'll look forward to figuring out the root cause. In the meantime, I've changed the @jack1142 Be sure to run
That will get rid of the offending wordcode. |
As far as I can tell, simply running
will also produce the error (when the script is sourced)
No plugin manager involved. |
@jack1142 Did that help? |
Error is gone. |
Glad to hear it! Thanks for helping to make |
I get this error message on startup:
Contents of
.zshrc
:See the response from zsh-autocomplete's author claiming that this is in fact a bug in zcomet:
marlonrichert/zsh-autocomplete#335 (comment)
The text was updated successfully, but these errors were encountered: