Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fish-shell tab-completion not work now #1669

Closed
mimikun opened this issue Feb 14, 2024 · 0 comments
Closed

fish-shell tab-completion not work now #1669

mimikun opened this issue Feb 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mimikun
Copy link

mimikun commented Feb 14, 2024

Describe the bug

mise install <press tab> now gives an error.
Occurs in mise v2024.2.11 and later.

To Reproduce

$ mise completion fish > ~/.config/fish/completions/mise.fish
$ exec $SHELL -l # shell restart
$ mise install <press tab>
sh: 5: Syntax error: redirection unexpected
Error: xx::process (link)

  × exited with code 2
  │ sh -c
  │ cur=""case $cur in*@*)
  │     IFS='@' read -r -a parts <<< "$cur"
  │     tool="${parts[0]}"
  │     prefix="${parts[1]}"
  │
  │     versions=$(mise ls-remote $tool $prefix | sed '1!G;h;$!d')
  │
  │     for version in $versions; doecho "$tool@$version"done
  │     ;;
  │   *)
  │     plugins=$(mise plugins --all)for plugin in $plugins; doecho "$plugin@"done
  │     ;;
  │ esac
  │

Expected behavior

Tab completion suggestions are displayed

mise doctor output

❯ mise doctor
mise version:
  2024.2.15 linux-x64 (2024-02-14)

build:
  Target: x86_64-unknown-linux-gnu
  Features: DEFAULT, NATIVE_TLS
  Built: Wed, 14 Feb 2024 10:23:53 +0000
  Rust Version: rustc 1.78.0-nightly (b381d3ab2 2024-02-12)
  Profile: release

shell:
  /usr/bin/fish
  fish, version 3.7.0

mise dirs:
  data: /home/mimikun/.local/share/mise
  config: /home/mimikun/.config/mise
  cache: /home/mimikun/.cache/mise
  state: /home/mimikun/.local/state/mise
  shims: /home/mimikun/.local/share/mise/shims

mise environment variables:
  MISE_GLOBAL_CONFIG_FILE=/home/mimikun/.config/mise/config.toml
  MISE_SHELL=fish
  MISE_FISH_AUTO_ACTIVATE=1
  MISE_EXPERIMENTAL=1
  MISE_NOT_FOUND_AUTO_INSTALL=false
  MISE_SHORTHANDS_FILE=/home/mimikun/.config/mise/shorthands.toml
  MISE_USE_VERSIONS_HOST=true
  MISE_JOBS=4
  MISE_DATA_DIR=/home/mimikun/.local/share/mise
  MISE_CONFIG_DIR=/home/mimikun/.config/mise
  MISE_CACHE_DIR=/home/mimikun/.cache/mise
  MISE_YES=1
  MISE_LOG_FILE=/home/mimikun/.cache/mise/mise.log
  MISE_ASDF_COMPAT=1
  MISE_LEGACY_VERSION_FILE=1

settings:
  activate_aggressive = false
  all_compile = false
  always_keep_download = false
  always_keep_install = false
  asdf_compat = true
  cargo_binstall = true
  color = true
  disable_default_shorthands = false
  disable_tools = []
  experimental = true
  go_default_packages_file = "~/.default-go-packages"
  go_download_mirror = "https://dl.google.com/go"
  go_repo = "https://github.com/golang/go"
  go_set_gopath = false
  go_set_goroot = true
  go_skip_checksum = false
  jobs = 4
  legacy_version_file = true
  legacy_version_file_disable_tools = []
  node_compile = false
  not_found_auto_install = false
  paranoid = false
  plugin_autoupdate_last_check_duration = "7d"
  python_compile = false
  python_default_packages_file = "/home/mimikun/.default-python-packages"
  python_pyenv_repo = "https://github.com/pyenv/pyenv.git"
  python_venv_auto_create = false
  raw = false
  shorthands_file = "/home/mimikun/.config/mise/shorthands.toml"
  trusted_config_paths = []
  quiet = false
  verbose = false
  yes = true
  ci = false
  debug = false
  trace = false
  log_level = "info"

  [status]
  missing_tools = "if_other_versions_installed"
  show_env = false
  show_tools = false


activated: yes
shims_on_path: yes
config files:
  ~/.config/mise/config.toml
  ~/.mise.toml

plugins:
  bun               (core)
  deno              (core)
  dotnet-core       https://github.com/emersonsoares/asdf-dotnet-core.git#4583e4b
  erlang            (core)
  go                (core)
  java              (core)
  lua               https://github.com/Stratus3D/asdf-lua.git#36fae6e
  luajit            https://github.com/smashedtoatoms/asdf-luaJIT.git#bbfe3cd
  neovim            https://github.com/richin13/asdf-neovim.git#0b7b611
  node              (core)
  powershell-core   https://github.com/daveneeley/asdf-powershell-core.git#901fd10
  python            (core)
  ruby              (core)
  tig               https://github.com/koketani/asdf-tig.git#9ac08f3
  vim               https://github.com/tsuyoshicho/asdf-vim.git#f335007
  zig               https://github.com/cheetah/asdf-zig.git#21cda20

toolset:
  dotnet-core@latest, lua@latest, luajit@latest, tig@latest, vim@latest, ruby@latest, neovim@nightly, node@20, python@3, zig@master

No problems found

Additional context

  • fish v3.7.0
  • Windows 11 Pro (23H2)
  • Ubuntu 22.04(WSL2)
@mimikun mimikun added the bug Something isn't working label Feb 14, 2024
@jdx jdx closed this as completed in 10dbf54 Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant