shell-completions icon indicating copy to clipboard operation
shell-completions copied to clipboard

new system integration options broke shell completions

Open xdBronch opened this issue 1 year ago • 3 comments

moved from https://github.com/ziglang/zig/issues/18866

Steps to Reproduce and Observed Behavior

in a zig project with no system integrations options ask for shell completions with the prompt zig build - rather than completing options like before it will print out

_arguments:comparguments:327: invalid argument: (none)[-]:
_arguments:comparguments:327: invalid argument: (none)[-]:
_arguments:comparguments:327: invalid argument: (none)[-]:

this is due to the new section from https://github.com/ziglang/zig/pull/18778

Available System Integrations:                Enabled:
(none)                                        -

if there are any system integration options the completions will work again

this is on zsh, i dont have shell completions setup for anything else so im not sure if it happens for those, sorry.

Expected Behavior

give completions for build options

xdBronch avatar Feb 08 '24 13:02 xdBronch

the completions in general need to be updated quite a bit, can they be autogenerated? im not familiar with sed and it seems extremely tedious doing any of this manually

xdBronch avatar Feb 11 '24 17:02 xdBronch

I'm sure it's possible to automate but I find it much easier to just do it manually once or twice a year.

Vexu avatar Feb 12 '24 14:02 Vexu

And zig build - completions have never worked that well to begin with #3

Vexu avatar Feb 12 '24 14:02 Vexu