Skip to content

bug: Conflict with ble.sh , even closed autocomplete, q-developer-cli will cause ble.sh can't suggest anymore #600

Description

@944750720

Checks

Operating system

Linux UM230093 6.6.87.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun 5 18:30:46 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

Expected behaviour

ble.sh: https://github.com/akinomyoga/ble.sh
Expect ble.sh can work well even installing amazon-q-developer-cli.
Settings maybe cause bug:

[[ -f "${HOME}/.local/share/amazon-q/shell/bashrc.pre.bash" ]] && builtin source "${HOME}/.local/share/amazon-q/shell/bashrc.pre.bash"

# ble.sh
source -- ~/.local/share/blesh/ble.sh
# ble.sh end

# Amazon Q post block. Keep at the bottom of this file.
[[ -f "${HOME}/.local/share/amazon-q/shell/bashrc.post.bash" ]] && builtin source "${HOME}/.local/share/amazon-q/shell/bashrc.post.bash"

I think maybe youshould notice users to delete following settings when users want to disable q-cli-autocomplete in documents.

[[ -f "${HOME}/.local/share/amazon-q/shell/bashrc.pre.bash" ]] && builtin source "${HOME}/.local/share/amazon-q/shell/bashrc.pre.bash"

# Amazon Q post block. Keep at the bottom of this file.
[[ -f "${HOME}/.local/share/amazon-q/shell/bashrc.post.bash" ]] && builtin source "${HOME}/.local/share/amazon-q/shell/bashrc.post.bash"

Related issue: aws/amazon-q-developer-cli#2641

Actual behaviour

ble.sh can't auto-suggest anymore after installing amazon-q-developer-cli. Recovered after removing [[ -f "${HOME}/.local/share/amazon-q/shell/bashrc.pre.bash" ]] && builtin source "${HOME}/.local/share/amazon-q/shell/bashrc.pre.bash" in ~/.bashrc.

# ble.sh
source -- ~/.local/share/blesh/ble.sh
# ble.sh end

# Amazon Q post block. Keep at the bottom of this file.
[[ -f "${HOME}/.local/share/amazon-q/shell/bashrc.post.bash" ]] && builtin source "${HOME}/.local/share/amazon-q/shell/bashrc.post.bash"

Above settings work.

Steps to reproduce

No response

Environment

GNU bash, version 5.2.21(1)-release (x86_64-pc-linux-gnu) [Ubuntu 24.04.1 LTS]
ble.sh, version 0.4.0-devel4+8060b7a (noarch) [git 2.43.0, GNU Make 4.3, GNU Awk 5.2.1, API 3.2, PMA Avon 8-g1, (GNU MPFR 4.2.1, GNU MP 6.3.0)]
bash-completion, version 2.11 (hash:9abb523dbcb688e7fae4b87f5fc9d155b658d9ba, 76898 bytes) (noarch)
locale: LANG=C.UTF-8
terminal: TERM=xterm-256color wcwidth=12.1-west/16.0-2+ri, xterm:276 (0;276;0)
options: +extglob +histappend -hostcomplete +inherit_errexit

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions