Open dorianmariecom opened 2 months ago
I came across the same issue myself. It seems that the shim path is not being added in the right place in your $PATH
variable, i.e. right at the beginning.
I updated my /opt/homebrew/opt/asdf/libexec/asdf.fish
script on lines 19-21 to:
if not test (contains -i $_asdf_shims $PATH) -eq 1
set -gx --prepend PATH $_asdf_shims
end
I am also suffering from a similar problem. I think the problem was caused by the v0.14.0 release. Since I recently ran a brew upgrade, the combination of fish and asdf ruby no longer works correctly.
I think the PATH environment variable in the initial setup script for fish is not set properly.
I had more issues with PATH being in dir1:dir2
format during the running of /opt/homebrew/opt/asdf/libexec/asdf.fish
instead of the fish format of dir1 dir2
.
I updated /opt/homebrew/opt/asdf/libexec/asdf.fish
to simply just prepend the shim path without doing any checks. It's hacky, but it works for now.
set -gx --prepend PATH $_asdf_shims $PATH
instead of
if not test (contains -i $_asdf_shims $PATH) -eq 1
set -gx --prepend PATH $_asdf_shims
end
Describe the Bug
I have a gem,
dorian-times
which has an executabletimes
I can do
gem install dorian-times
But when I do
times
I get:Other projects like dorian-each work just fine and use the same setup
Steps to Reproduce
asdf install ruby 3.3.0
asdf local ruby 3.3.0
orasdf global ruby 3.3.0
gem install dorian-times
times
Expected Behaviour
Shows the help message
Actual Behaviour
Shows an error message
Environment
asdf plugins affected (if relevant)
ruby