jdx / mise

dev tools, env vars, task runner
https://mise.jdx.dev
MIT License
8.03k stars 210 forks source link

Panicking when trying to complete after a `>` #2323

Open ramnes opened 1 week ago

ramnes commented 1 week ago

Describe the bug

thread 'main' panicked at lib/src/cli.rs:155:9:
unexpected word: >
stack backtrace:
   0:        0x1050adc38 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h01b2beffade888b2
   1:        0x104fcdfe8 - core::fmt::write::hbadb443a71b75f23
   2:        0x105089598 - std::io::Write::write_fmt::hc09d7755e3ead5f0
   3:        0x1050b1bc0 - std::sys_common::backtrace::print::h28349e5c25acbac7
   4:        0x1050b2e24 - std::panicking::rust_panic_with_hook::h84760468187ddc85
   5:        0x1050b1d38 - std::panicking::begin_panic_handler::{{closure}}::he666a5eb600a7203
   6:        0x1050b1c9c - std::sys_common::backtrace::__rust_end_short_backtrace::h592f44d2bf9f843f
   7:        0x1050b1c90 - _rust_begin_unwind
   8:        0x1051a55b8 - core::panicking::panic_fmt::h98bbf7bdf4994454
   9:        0x10516faa4 - usage::cli::parse::h500a5ef7b3b1e2c4
  10:        0x105179cb4 - usage_cli::cli::Cli::run::hfb7d83fe75575267
  11:        0x104f6a138 - usage::main::h7a7bb9428d38e962
  12:        0x104f6853c - std::sys_common::backtrace::__rust_begin_short_backtrace::h06cf368a3fa79ced
  13:        0x104f6b5c0 - _main

To Reproduce

Expected behavior Shell completion of local files

mise doctor output

version: 2024.6.6 macos-arm64 (2024-06-20)
activated: yes
shims_on_path: no

build_info:
  Target: aarch64-apple-darwin
  Features: DEFAULT, NATIVE_TLS
  Built: Thu, 20 Jun 2024 17:07:53 +0000
  Rust Version: rustc 1.79.0 (129f3b996 2024-06-10) (Homebrew)
  Profile: release

shell:
  /opt/homebrew/bin/bash
  GNU bash, version 5.2.26(1)-release (aarch64-apple-darwin23.2.0)
  Copyright (C) 2022 Free Software Foundation, Inc.
  License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

  This is free software; you are free to change and redistribute it.
  There is NO WARRANTY, to the extent permitted by law.

dirs:
  data: ~/.local/share/mise
  config: ~/.config/mise
  cache: ~/Library/Caches/mise
  state: ~/.local/state/mise
  shims: ~/.local/share/mise/shims

config_files:
  ~/company/repository/.mise.toml

backends:
  cargo
  core
  go
  npm
  pipx
  spm
  ubi

plugins:
  buf     https://github.com/truepay/asdf-buf.git#6c27312
  bun     (core)
  deno    (core)
  erlang  (core)
  go      (core)
  java    (core)
  node    (core)
  python  (core)
  ruby    (core)
  usage   https://github.com/jdx/mise-usage.git#fe3888a
  zig     (core)

toolset:
  usage@0.3.0
  buf@1.31.0

env_vars:
  MISE_SHELL=bash

settings:
  activate_aggressive = false
  all_compile = false
  always_keep_download = false
  always_keep_install = false
  asdf_compat = false
  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
  http_timeout = 30
  jobs = 1
  legacy_version_file = true
  legacy_version_file_disable_tools = []
  node_compile = false
  not_found_auto_install = true
  paranoid = false
  plugin_autoupdate_last_check_duration = "7d"
  python_default_packages_file = "/Users/ramnes/.default-python-packages"
  python_pyenv_repo = "https://github.com/pyenv/pyenv.git"
  raw = false
  trusted_config_paths = []
  quiet = false
  verbose = false
  yes = false
  ci = false
  debug = false
  trace = false
  log_level = "info"
  python_venv_auto_create = false

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

No warnings found
No problems found

Additional context

None