Closed jankatins closed 1 year ago
Run find . -name '*.md' -type f -print0 | xargs -0 -n1 -P4 python3 -m mdformat --check --wrap 120
Error: File "/home/runner/work/zinit/zinit/CHANGELOG.md" is not formatted.
Error: Process completed with exit code 123.
Given that the last change is from 2021, I guess I can ignore this one?
LGTM, the two extended if checks appear to be OK.
pon., 7 lis 2022, 20:23 użytkownik Jan Katins @.***> napisał:
Run find . -name '*.md' -type f -print0 | xargs -0 -n1 -P4 python3 -m mdformat --check --wrap 120 Error: File "/home/runner/work/zinit/zinit/CHANGELOG.md" is not formatted. Error: Process completed with exit code 123.
Given that the last change is from 2021, I guess I can ignore this one?
— Reply to this email directly, view it on GitHub https://github.com/zdharma-continuum/zinit/pull/417#issuecomment-1306081075, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOE4CDOXGNSDXZDXMIYC4LWHFJKHANCNFSM6AAAAAARZNXBDE . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Rebased...
the zshelldoc test fails with some places I never touched. Is actually someone looking at this test or is that not relevant for merging (I assume some previous PR changed these places, but not the test...)
Questions:
lbin
ice doesn't cause it?Are you sure the lbin ice doesn't cause it?
I've not explicitly tested this, but from my reading of the code, there is nothing which could be influenced by the lbin ice. It's my usage of the default ice with as"null" ... nocompile
which causes this (twice, actually, as both disable compilations).
Why does the current behavior disables checking for completions?
Main part from the PR diff:
- [[ 0 = ${+ICE[nocompletions]} && ${ICE[as]} != null && ${+ICE[null]} -eq 0 ]] && \
+ [[ (0 = ${+ICE[nocompletions]} && ${ICE[as]} != null && ${+ICE[null]} -eq 0) || 0 != ${+ICE[completions]} ]] && \
Basically if you either use as"null"
or nocompile
(e.g. in a default ice), you won't get completion right now. This PR simply lets you overwrite that.
My interpretation of the current code is that this was simply overlooked: nocompile
has compile
, so you can put it back. But nocompletions
(or as"null"
) has up to now no completions
to overwrite it, so this PR adds it. I guess it wasn't an issue until the default ice annex came up...
@jankatins Can you update the documentation?
Run find . -name '*.md' -type f -print0 | xargs -0 -n1 -P4 python3 -m mdformat --check --wrap 120 Error: File "/home/runner/work/zinit/zinit/CHANGELOG.md" is not formatted. Error: Process completed with exit code 123.
Given that the last change is from 2021, I guess I can ignore this one?
@jankatins This was fixed, btw.
Can you update the documentation?
I added it in the readme, where else does it need to go?
I added a commit which should fix the doctest, but this was a different PR which broke this, I didn't add 20+ lines somewhere...
:tada: This PR is included in version 3.9.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Description
Adds a new ice called
completions
which, if set, always triggers completion detection and installation.This can be used to overwrite
as'null'
which would otherwise not trigger completion detection and installation. It would also overwrite anocompletions
ice, if both are set, e.g. via using the default ice annex.Motivation and Context
I use default ice to set
zinit default-ice --quiet as'null' from"gh-r" lbin'!' lucid nocompile
for my list of gh-r downloads. Unfortunately, this disables the import of completions:To reproduce:
Related Issue(s)
Usage examples
Set default ice
set empty ice per zinit call
I didn't implement setting a pattern for
compilations'whatever'
as this would have complicated the change: it would need to add (or replace) the default pattern which is searched for.How Has This Been Tested?
I ran the above two versions locally via
See the last line which shows that the completions were installed.
There are also two new tests which hopefully pass :-)
Types of changes
Checklist: