Open jiz4oh opened 11 months ago
The asdf current is not return correctly if some of specify versions are not installed, I have the following line in .tool-versions:
.tool-versions
ruby 2.7.8 2.6.10 system
I have installed 2.7.8 and haven't installed 2.6.10, and the ruby --version is correctly return
ruby --version
ruby 2.7.8p225 (2023-03-30 revision 1f4d455848) [arm64-darwin21]
but asdf current ruby return
asdf current ruby
ruby system Not installed. Run "asdf install ruby system"
at least it should show me 2.7.8 instead of system
ruby 3.2.2 2.5.4 system
2.7.8
OS: Darwin C02F90VJQ05R-ALEX 21.6.0 Darwin Kernel Version 21.6.0: Mon Apr 24 21:11:35 PDT 2023; root:xnu-8020.240.18.701.5~1/RELEASE_ARM64_T8101 arm64 SHELL: zsh 5.8.1 (x86_64-apple-darwin21.0) BASH VERSION: 3.2.57(1)-release ASDF VERSION: v0.13.1-0586b37 ASDF INTERNAL VARIABLES: ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions ASDF_DATA_DIR=/Users/jiz4oh/.asdf ASDF_DIR=/Users/jiz4oh/.asdf ASDF_CONFIG_FILE=/Users/jiz4oh/.asdfrc ASDF INSTALLED PLUGINS: deno https://github.com/asdf-community/asdf-deno.git master 87442fe golang https://github.com/asdf-community/asdf-golang.git master 33b1f6d nodejs https://github.com/asdf-vm/asdf-nodejs.git master c9e5df4 python https://github.com/danhper/asdf-python.git master 8505457 ruby https://github.com/asdf-vm/asdf-ruby.git master b3d44de
No response
Is this resolved by running asdf reshim ruby?
asdf reshim ruby
No. And I update the Steps to Reproduce that can easily reproduce
Steps to Reproduce
Describe the Bug
The asdf current is not return correctly if some of specify versions are not installed, I have the following line in
.tool-versions
:I have installed 2.7.8 and haven't installed 2.6.10, and the
ruby --version
is correctly returnbut
asdf current ruby
returnat least it should show me 2.7.8 instead of system
Steps to Reproduce
.tool-versions
, likeruby 3.2.2 2.5.4 system
asdf current ruby
Expected Behaviour
2.7.8
Actual Behaviour
ruby system Not installed. Run "asdf install ruby system"
Environment
asdf plugins affected (if relevant)
No response