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

Completion fails with: bash: command not found: _comp_initialize #3697

Closed
robinbowes opened this issue Dec 18, 2024 · 4 comments
Closed

Completion fails with: bash: command not found: _comp_initialize #3697

robinbowes opened this issue Dec 18, 2024 · 4 comments
Labels

Comments

@robinbowes
Copy link

Describe the bug
Completion not working in 2024.12.14 on macos installed from homwbrew

To Reproduce
Type: mise, then space, then tab

This error is displayed: bash: command not found: _comp_initialize

Expected behavior
I'd expect completion to work correctly.

mise doctor output

version: 2024.12.14 macos-arm64 (2024-12-18)
activated: yes
shims_on_path: no

build_info:
  Target: aarch64-apple-darwin
  Features: DEFAULT, NATIVE_TLS
  Built: Wed, 18 Dec 2024 18:50:28 +0000
  Rust Version: rustc 1.83.0 (90b35a623 2024-11-26) (Homebrew)
  Profile: release

shell:
  /opt/homebrew/bin/bash
  GNU bash, version 5.2.37(1)-release (aarch64-apple-darwin24.0.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:
  cache: ~/Library/Caches/mise
  config: ~/.config/mise
  data: ~/.local/share/mise
  shims: ~/.local/share/mise/shims
  state: ~/.local/state/mise

config_files:
  ~/.config/mise/config.toml

backends:
  aqua
  asdf
  cargo
  core
  gem
  go
  npm
  pipx
  spm
  ubi
  vfox

plugins:
  terraform   https://github.com/asdf-community/asdf-hashicorp.git#22eb1c4
  terragrunt  https://github.com/ohmer/asdf-terragrunt.git#4a6651a

toolset:
  asdf:terraform@1.10.0
  asdf:terragrunt@0.69.3
  core:python@3.13.1

path:
  ~/.cache/venv/global-3.13.1/bin
  ~/.local/share/mise/installs/python/3.13.1/bin
  ~/.local/share/mise/installs/terraform/1.10.0/bin
  ~/.local/share/mise/installs/terragrunt/0.69.3/bin
  /opt/homebrew/opt/postgresql@16/bin
  ~/.local/bin
  ~/bin
  ~/code/golang/bin
  /opt/homebrew/sbin
  /opt/homebrew/bin
  /usr/local/bin
  /System/Cryptexes/App/usr/bin
  /usr/bin
  /bin
  /usr/sbin
  /sbin
  /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin
  /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin
  /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
  /Applications/iTerm.app/Contents/Resources/utilities

env_vars:
  MISE_SHELL=bash

settings:
  experimental  true ~/.config/mise/config.toml

No problems found

Additional context

@robinbowes robinbowes added the bug label Dec 18, 2024
@jdx
Copy link
Owner

jdx commented Dec 18, 2024

you need --include-bash-completion-lib

@jdx jdx closed this as completed Dec 18, 2024
@robinbowes
Copy link
Author

I did not create the completion script manually - brew install mise added it.

If the additional flag is required, then surely the brew recipe should include it?

@jdx
Copy link
Owner

jdx commented Dec 18, 2024

you could follow up with homebrew on that, I'm not sure what they do with that library

@robinbowes
Copy link
Author

you could follow up with homebrew on that, I'm not sure what they do with that library

I've created a PR: Homebrew/homebrew-core#201741

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants