-
Notifications
You must be signed in to change notification settings - Fork 133
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
[bug]: sourcing completion when generated in the atpull
hook
#147
Comments
atpull
hook.atpull
hook.
Thanks for reporting this @yodahuang! I'll take a look at this later tonight. |
Same for me. My config:
Test result:1e6bdf0: broken
d82c613: good
|
oof, we broke zinit with a documentation update... lol. Looking into this now. |
I just ran into this issue trying to use completions for poetry
I can see the file at
@vladdoster Would you be willing to share any more information regarding this? Perhaps the suspect lines of code, or at least the commit or PR? EDIT: I missed the commits listed by @lljbash above. So it seems like this was introduced in #112. Is there a known workaround, in the meantime? |
There's a workaround at #172 (comment), which basically says "ok zinit is not souceing the completion file for me, let me run |
I think your recipe for poetry completion is incomplete. Try this: zi for \
as'completion' \
atclone'poetry completions zsh > _poetry' \
atpull'%atclone' \
blockf \
has'poetry' \
id-as'python-poetry/poetry' \
nocompile \
zdharma-continuum/null |
@vladdoster Thanks for your help! I believe the
|
@vladdoster How come this is needed? I also came across this with starship: zi from"gh-r" bpick"*linux-gnu.tar.gz" nocompile fbin"starship" \
atclone"./starship init zsh > init.zsh; zcompile init.zsh; \
./starship completions zsh > _starship" atpull"%atclone" for \
"starship/starship" The completion file |
atpull
hook.atpull
hook
Issue description
The generated
_foo_bar
completion file is being ignored by zinit.E.g. when running
zinit update kubectl_completion
(see my config for the setup that is previously working),Using
zinit update kubectl_completion -u -r
does not help.zinit config
zinit version or commit ID
9ee45d6
zsh version
5.8
host info
OSTYPE=linux-gnu CPUTYPE=x86_64 MACHTYPE=x86_64 5.4.0-1060-aws VERSION="18.04.6 LTS (Bionic Beaver)" ID=ubuntu
The text was updated successfully, but these errors were encountered: