-
Notifications
You must be signed in to change notification settings - Fork 130
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
[maint/feature]: Understand/improve the interaction between as"completion" and explicit download pick #310
Comments
Full session (in ~/.local/share/zinit/completions, so the rm works): [14:40:07] λ rm -rf _tldr_ghr && zinit delete tldr-completion/gh-r -y
Done (action executed, exit code: 0)
[14:40:19] λ zinit for as"completion" from"gh-r" id-as'tldr-completion/gh-r' bpick"completions_zsh" @dbrgn/tealdeer
Downloading dbrgn/tealdeer… (at label: tldr-completion/gh-r…)
(Requesting `completions_zsh'…)
############################################################################################################################################################################################################ 100.0%
ziextract: WARNING: didn't recognize the archive type of `completions_zsh' }(no extraction has been done).%f%b
No files for compilation found.
Warning: ∞zinit-compile-plugin-hook hook returned with 1
[14:40:26] [1] ✗ ls -la |grep tldr
[14:40:29] [1] ✗ rm -rf _tldr_ghr && zinit delete tldr-completion/gh-r -y
Done (action executed, exit code: 0)
[14:40:35] λ zinit for as"completion" from"gh-r" id-as'tldr-completion/gh-r' bpick"completions_zsh" mv"completions_zsh -> _tldr_ghr" @dbrgn/tealdeer
Downloading dbrgn/tealdeer… (at label: tldr-completion/gh-r…)
(Requesting `completions_zsh'…)
############################################################################################################################################################################################################ 100.0%
ziextract: WARNING: didn't recognize the archive type of `completions_zsh' }(no extraction has been done).%f%b
renamed 'completions_zsh' -> '_tldr_ghr'
No files for compilation found.
Warning: ∞zinit-compile-plugin-hook hook returned with 1
[14:40:42] [1] ✗ ls -la |grep tldr
[14:40:46] [1] ✗ rm -rf _tldr_ghr && zinit delete tldr-completion/gh-r -y
Done (action executed, exit code: 0)
[14:40:50] λ zinit for as"completion" from"gh-r" id-as'tldr-completion/gh-r' bpick"completions_zsh" mv"completions_zsh -> _tldr_ghr" pick"_tldr_ghr" @dbrgn/tealdeer
Downloading dbrgn/tealdeer… (at label: tldr-completion/gh-r…)
(Requesting `completions_zsh'…)
############################################################################################################################################################################################################ 100.0%
ziextract: WARNING: didn't recognize the archive type of `completions_zsh' }(no extraction has been done).%f%b
renamed 'completions_zsh' -> '_tldr_ghr'
Note: Compiling: _tldr_ghr… OK.
Installed 1 completions. They are stored in the $INSTALLED_COMPS array.
[14:41:00] λ ls -la |grep tldr
lrwxrwxrwx 1 jan jan 69 Jun 14 14:41 _tldr_ghr -> /home/jan/.local/share/zinit/plugins/tldr-completion---gh-r/_tldr_ghr
[14:41:03] λ rm -rf _tldr_ghr && zinit delete tldr-completion/gh-r -y
Done (action executed, exit code: 0)
[14:41:46] λ zinit for as"completion" from"gh-r" id-as'tldr-completion/gh-r' bpick"completions_zsh" pick"completions_zsh" @dbrgn/tealdeer
Downloading dbrgn/tealdeer… (at label: tldr-completion/gh-r…)
(Requesting `completions_zsh'…)
############################################################################################################################################################################################################ 100.0%
ziextract: WARNING: didn't recognize the archive type of `completions_zsh' }(no extraction has been done).%f%b
No files for compilation found (pick-ice didn't match).
Warning: ∞zinit-compile-plugin-hook hook returned with 1
[14:42:02] [1] ✗ ls -la |grep tldr
|
Can you choose if this is either a feature or maintenance and recreate this issue using the appropriate issue template? |
Btw the completion isn’t recognized due to this line, no? Line 544 in f6e1d03
|
I've no clue if this should be considered a bug or a feature or even "just" some missing documentation (= behaviour is fine, works as intended, just needs to be documented), I just opened this issue because you said it was strange in #227. I haven't looked what is preventing this combination to be recognised as a completion, sorry. |
Summary
It seems the interaction between
as"completion"
and an explicit download pick is surprising, as it seems to require amv
+pick
ice as well (Why? No idea, maybe because it doesn't follow the_<package-id>
logic?):(from https://github.com/zdharma-continuum/zinit/pull/227/files#r866821730
In that case, a simple
wasn't enough to make zinit link the completion into the completion dir, it needs both the mv and the pick (only the pick with the downloaded name is also not enough).
Comment by @vladdoster:
Proposed fix
No idea
The text was updated successfully, but these errors were encountered: