-
Notifications
You must be signed in to change notification settings - Fork 887
Open
Labels
Description
Describe the Bug
I have identified a regression in asdf versions 0.16.6 and 0.16.7 that affects the Zsh completion functionality. Specifically, when using the set command to configure the current Java JDK version, the completion system incorrectly suggests all installable JDK versions instead of only listing the currently installed JDK versions.
This issue was not present in asdf version 0.16.5, where the command completion correctly displayed only the JDK versions installed on the system.
Steps to Reproduce
- Install asdf v0.16.6 or v0.16.7.
- Use Zsh as your shell.
- Run the following command and attempt auto-completion:
- asdf set java
- Observe that the completion suggests all available JDKs (installable), rather than only the installed ones.

- Downgrade to asdf v0.16.5.
- Run the same command again.
- Observe that the correct behavior is restored, showing only installed JDK versions.

Expected Behaviour
When using the set command in Zsh completion, only the JDK versions installed on the system should be suggested.

Actual Behaviour
When using the set command in Zsh completion, in versions 0.16.6 and 0.16.7, the completion instead lists all installable JDK versions.

Environment
Macos 15.3.2
zsh 5.9 (x86_64-apple-darwin24.0)
Homebrew 4.4.27-3-gfaddb73
asdf plugins affected (if relevant)
java
mhagnumdw and Aurel-Roci