aws / aws/amazon-q-developer-cli

ASDF autocomplete doesn't support versions 0.16+

オープン
#587 コメント 2 件 リアクション 4 件 担当者 0 名 GitHub で見る
主要言語
Rust
スター
2k
フォーク
439
PR マージ指標
30日以内にマージされた PR はありません

説明

### 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

macOS 15.3.1 (24D70)

### Expected behaviour

Amazon Q should detect which version of [asdf](https://asdf-vm.com/) is installed / used and modify suggestions/autocomplete to use that versions commands. See the list of [breaking changes with 0.16](https://asdf-vm.com/guide/upgrading-to-v0-16.html#breaking-changes). For example, I'd expect to get a suggestion for `asdf set java ` instead of `asdf local java ` when trying to change the java version with `asdf` 0.16+.

### Actual behaviour

Regardless of the `asdf` version used, Amazon Q is offering suggestions from versions before v0.16.For example, when using `asdf` 0.16+, I still see suggestions for prior versions, such as `asdf local java `, etc. See the full list of [breaking changes with 0.16](https://asdf-vm.com/guide/upgrading-to-v0-16.html#breaking-changes).

### Steps to reproduce

Upgrade [asdf](https://asdf-vm.com/guide/upgrading-to-v0-16.html#breaking-changes) to version 0.16+ and see that Amazon Q is still referencing commands from prior releases.

### Environment

```yaml
[q-details]
version = "1.6.1"
hash = "f66e0b0e917ab185eef528dc36eca56b78ca8b5d"
date = "2025-02-04T00:06:28.754523Z (10d ago)"
variant = "full"

[system-info]
os = "macOS 15.3.1 (24D70)"
chip = "Apple M1 Max"
total-cores = 10
memory = "64.00 GB"

[environment]
cwd = "/Users/USER"
cli-path = "/Users/USER"
os = "Mac"
shell-path = "/bin/zsh"
shell-version = "5.9"
terminal = "macOS"
install-method = "unknown"

[env-vars]
PATH = "/Users/USER/bin:/Users/USER/Downloads/google-cloud-sdk/bin:/Users/USER/.asdf/shims:/opt/homebrew/opt/coreutils/libexec/gnubin:/usr/local/opt/ruby/bin:/opt/homebrew/bin:/usr/local/bin:/Users/USER/bin:/usr/local/sbin:/Users/USER/.asdf/shims:/opt/homebrew/bin:/opt/homebrew/sbin:/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:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/USER/.local/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/Users/USER/Library/Android/sdk/tools:/Users/USER/Library/Android/sdk/platform-tools:/Users/USER/Library/Application Support/JetBrains/Toolbox/scripts:/Users/USER/Projects/gradle-profiler/build/install/gradle-profiler/bin"
QTERM_SESSION_ID = "540001add00b405f951ec49fe4592f3c"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.6.1"
SHELL = "/bin/zsh"
TERM = "xterm-256color"
__CFBundleIdentifier = "com.apple.Terminal"
```

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

報告されているとおり、asdf をバージョン 0.16 以降にアップグレードした後、q doctor と q restart を使って問題を再現します。Java のバージョンを変更する際の自動補完候補を asdf 0.16 の breaking-change リストと比較します。インストールされている asdf のバージョンがサポートするコマンドを、asdf local のようなレガシーコマンドではなく候補が使用していれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
rust, zsh
領域
cli
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
28/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。