Skip to content

Wrangler completions fail in fish #12057

@adam0white

Description

@adam0white

What versions & operating system are you using?

System:
OS: macOS 26.3
CPU: (10) arm64 Apple M4
Memory: 73.08 MB / 16.00 GB
Shell: 4.3.3 - /opt/homebrew/bin/fish
Binaries:
Node: 25.4.0 - /opt/homebrew/bin/node
Yarn: 1.22.22 - /Users/abdul/.nvm/versions/node/v23.7.0/bin/yarn
npm: 11.8.0 - /opt/homebrew/bin/npm
pnpm: 10.28.1 - /opt/homebrew/bin/pnpm
bun: 1.3.5 - /Users/abdul/.bun/bin/bun

Please provide a link to a minimal reproduction

na

Describe the Bug

I've updated to wrangler version 4.60.0 and installed the new shell tab completions via wrangler complete fish >> ~/.config/fish/config.fish for fish.
However, when I hit tab on any character after wrangler, fish shows the error log below.

Please provide any relevant error logs

test: Missing argument at index 3 
0 -eq
      ^
~/.config/fish/config.fish (line 96): 
    if test $directive_num -eq $ShellCompDirectiveError
       ^
in function '__wrangler_perform_completion'
in command substitution
test: Missing argument at index 3
0 -ne
      ^
~/.config/fish/config.fish (line 109): 
        if test $directive_num -ne $ShellCompDirectiveNoFileComp
           ^
in function '__wrangler_perform_completion'
in command substitution

Metadata

Metadata

Labels

wranglerRelating to the Wrangler CLI tool

Type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions