Skip to content

fish completions break if autopair plugin is istalled #2153

@caarlos0

Description

@caarlos0

Description

if you have autopair installed and try to tab-complete a task command, it breaks.

~/D/c/dotfiles main•
❱ task --completion fish > ~/.config/fish/completions/task.fish
~/D/c/dotfiles main•
❱ task ~/.config/fish/completions/task.fish (line 5): The expanded command was empty.
  $GO_TASK_PROGNAME --list-all 2>&1 | read -lz rawOutput
  ^~~~~~~~~~~~~~~~^
in function '__task_get_tasks'
        called on line 1 of file /nix/store/42ikxb2i4hccrw7kvi9vg1py3m26mxs7-source/functions/_autopair_tab.fish
in command substitution
        called on line 6 of file /nix/store/42ikxb2i4hccrw7kvi9vg1py3m26mxs7-source/functions/_autopair_tab.fish
in function '_autopair_tab'

removing the autopair plugin fixes it.

Version

3.41

Operating system

macos 15.4

Experiments Enabled

No response

Example Taskfile

any taskfile, even no taskfile

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: completionsChanges related to shell completions and scripts.help wantedIssues that could benefit from members of the community contributing their expertise or experience.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions