aws / aws/amazon-q-developer-cli
Missing q-pre script despite "q doctor" passing
- Dominant language
- Rust
- Stars
- 2k
- Forks
- 439
- PR merge metrics
- No merged PRs in 30d
Description
### Checks
- [x] I have searched [github.com/aws/amazon-q-developer-cli/issues](https://github.com/aws/amazon-q-developer-cli/issues?q=) and there are no duplicates of my issue
- [x] I have run `q doctor` in the affected terminal session
- [x] I have run `q restart` and replicated the issue again
### Operating system
Linux 6.6.87.2-microsoft-standard-WSL2 - Ubuntu 24.04.2 LTS
### Expected behaviour
After sourcing ~/.local/bin/q-pre in shell configuration as per Q CLI setup guidance, I expected no errors during shell reload and complete Q CLI functionality.
### Actual behaviour
While "q doctor" reports everything is healthy, the shell returns:
bash: /home/oribeam/.local/bin/q-pre: No such file or directory
This message repeats every time a shell is started or reloaded. The file seems missing, yet Q CLI operates normally.
### Steps to reproduce
1. Add `source ~/.local/bin/q-pre` to ~/.bashrc and ~/.profile
2. Reload shell using `source ~/.bashrc`
3. Observe error message: `No such file or directory`
4. Run `q doctor` to verify CLI health (shows "✔ Everything looks good!")
### Environment
```yaml
[q-details]
version = "1.12.7"
hash = "ed77799a52644ba49a3ed76b15c25cd9334c4b8d"
date = "2025-07-22T17:42:51.034216Z (5d ago)"
variant = "full"
[system-info]
chip = "13th Gen Intel(R) Core(TM) i5-1340P"
total-cores = 8
memory = "3.67 GB"
[system-info.os.linux]
kernel_version = "6.6.87.2-microsoft-standard-WSL2"
id = "ubuntu"
name = "Ubuntu"
pretty_name = "Ubuntu 24.04.2 LTS"
version_id = "24.04"
version = "24.04.2 LTS (Noble Numbat)"
[environment]
cwd = "/home/USER"
cli-path = "/home/USER"
os = "Linux"
shell-path = "/usr/bin/bash"
shell-version = "5.2.21"
install-method = "unknown"
in-wsl = true
[env-vars]
DISPLAY = ":0"
PATH = "/home/USER/.local/bin:/home/USER/.local/bin:/home/USER/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files/PowerShell/7/:/mnt/c/Program Files/nodejs/:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/Program Files (x86)/Google/Cloud SDK/google-cloud-sdk/bin:/mnt/c/Program Files/nodejs/:/mnt/c/Program Files/Git/usr/bin:/mnt/c/Program Files/Git/bin:/mnt/c/Program Files/GitHub CLI/:/mnt/c/Users/ozi10/AppData/Local/Programs/Python/Python313/Scripts/:/mnt/c/Users/ozi10/AppData/Local/Programs/Python/Python313/:/mnt/c/Users/ozi10/AppData/Local/Programs/Python/Launcher/:/mnt/c/Users/ozi10/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/ozi10/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/ozi10/AppData/Roaming/npm:/mnt/c/Users/ozi10/AppData/Local/Google/Cloud SDK/google-cloud-sdk/bin:/mnt/c/Users/ozi10/AppData/Local/GitHubDesktop/bin:/snap/bin:/home/USER/.local/bin:/mnt/c/Users/ozi10/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/ozi10/AppData/Local/Programs/Microsoft VS Code/bin"
QTERM_SESSION_ID = "5e9afb20901e4e87a3ee564b410ce971"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.12.7"
SHELL = "/bin/bash"
TERM = "xterm-256color"
```
Contributor guide
Assessment
This issue has not been assessed yet.