jdx / mise

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

Started getting backtrace in 2024.6.6: `src/plugins/script_manager.rs:178` #2346

Open pmalek opened 4 days ago

pmalek commented 4 days ago

Describe the bug

RUST_BACKTRACE=full make generate.clientsets
mise bin/plugins/kube-code-generator/bin/install failed
Error:
   0: bin/plugins/kube-code-generator/bin/install exited with non-zero status: exit code 1

Location:
   src/plugins/script_manager.rs:178

Version:
   2024.6.6 macos-arm64 (2024-06-20)

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
                                ⋮ 4 frames hidden ⋮
   5: mise::plugins::script_manager::ScriptManager::run_by_line::h35c518ec3aed6d16
      at <unknown source file>:<unknown line>
   6: <mise::backend::asdf::Asdf as mise::backend::Backend>::install_version_impl::hc17435cc124e830e
      at <unknown source file>:<unknown line>
   7: mise::backend::Backend::install_version::ha2aaddca2d5657db
      at <unknown source file>:<unknown line>
   8: std::sys_common::backtrace::__rust_begin_short_backtrace::h6ca1252e86d58832
      at <unknown source file>:<unknown line>
   9: core::ops::function::FnOnce::call_once{{vtable.shim}}::h3cb53c9dbc1019b4
      at <unknown source file>:<unknown line>
  10: std::sys::pal::unix::thread::Thread::new::thread_start::h917221368ce9e22b
      at <unknown source file>:<unknown line>
  11: __pthread_joiner_wake<unknown>
      at <unknown source file>:<unknown line>

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
make: *** [Makefile:99: client-gen] Error 1

To Reproduce

  1. check out https://github.com/Kong/gateway-operator
  2. run make generate.clientsets Expected behavior A clear and concise description of what you expected to happen.

mise doctor output

version: 2024.6.6 macos-arm64 (2024-06-20)
activated: no
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: 
  /bin/zsh
  zsh 5.9 (x86_64-apple-darwin23.0)

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

config_files: 
  ~/.config/mise/config.toml
  ~/code_/gateway-operator/.mise.toml

backends: 
  cargo
  core
  go
  npm
  pipx
  spm
  ubi

plugins: 
  bun                    (core)
  deno                   (core)
  erlang                 (core)
  go                     (core)
  golangci-lint          ssh://git@github.com/hypnoglow/asdf-golangci-lint.git#fee877b
  java                   (core)
  kube-code-generator    ssh://git@github.com/pmalek/asdf-kube-code-generator.git#4edd5bd
  kube-controller-tools  ssh://git@github.com/jimmidyson/asdf-kube-controller-tools.git#37526dc
  kustomize              ssh://git@github.com/Banno/asdf-kustomize.git#8e929af
  node                   (core)
  python                 (core)
  ruby                   (core)
  zig                    (core)

toolset: 

env_vars: 
  (none)

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 = 4
  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/user/.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
2 problems found:

1. mise is not activated, run mise help activate or
   read documentation at https://mise.jdx.dev for activation instructions.
   Alternatively, add the shims directory ~/.local/share/mise/shims to PATH.
   Using the shims directory is preferred for non-interactive setups.

3. unused shims are present, run mise reshim to remove them
   Unused shims: setup-envtest

Additional context Add any other context about the problem here. Consider running mise with --debug or --trace for extra debug info.