Skip to content

Dynamic fish completions breaks fish completions #2285

@TimSoethout

Description

@TimSoethout

Kinda seems like this broke fish completion for me:

❯ ./result/bin/hei completion fish|source
- (line 3): Unsupported use of '='. In fish, please use 'set string hei'.
function __%!_(string=hei)perform_completion
               ^~~~~~~~~^
from sourcing file -
source: Error while reading file “<stdin>”

Originally posted by @marcusramberg in #2270 (comment)

and

I have the same issue as @marcusramberg :

~/.local/share/fish/vendor_completions.d/toolname.fish (line 3): Unsupported use of '='. In fish, please use 'set string toolname'.
function __%!_(string=toolname)perform_completion
               ^~~~~~~~~~~~^
from sourcing file ~/.local/share/fish/vendor_completions.d/toolname.fish
	called on line 1 of file ~/.config/fish/conf.d/toolname-forwarding.fish
from sourcing file ~/.config/fish/conf.d/toolname-forwarding.fish
	called on line 223 of file embedded:config.fish
from sourcing file embedded:config.fish
	called during startup
source: Error while reading file '/Users/de13lb/.local/share/fish/vendor_completions.d/toolname.fish'

fish, version 4.5.0
github.com/urfave/cli/v3 v3.7.0

Metadata

Metadata

Assignees

Labels

area/v3relates to / is being considered for v3kind/bugdescribes or fixes a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions