fish-shell / fish-shell/fish-shell
Yarn completions out of date
- Dominant language
- Rust
- Stars
- 34.2k
- Forks
- 2.4k
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 13
Description
```console
$ fish --version
fish, version 3.5.1
$ echo $version
3.5.1
```
The autocompletion for `yarn` [bundled with Fish](https://github.com/fish-shell/fish-shell/blob/3c3e7369ae8eeb631f4b47f3265208ea503a5f85/share/completions/yarn.fish) is very out of date. It seem to be for Yarn 1 and Yarn is now at version 3 (3.3.0). Unfortunately the auto completion is used by default and creates problems when using it:
```console
$ yarn --version
3.3.0
$ yarn up
upgrade (Upgrade packages)
upgrade-interactive (Upgrade packages interactively)
$ yarn upgrade
yarn upgrade
Usage Error: Couldn't find a script named "upgrade".
\$ yarn run [--inspect] [--inspect-brk] [-T,--top-level] [-B,--binaries-only] ...
$ yarn up # Actual command
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed
➤ YN0000: Done in 0s 190ms
```
Until this autocompletion is updated, I think it would be wise to disable it. Wrong completion is worse than no completion at all.
Contributor guide
Assessment
This issue has not been assessed yet.