You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
asdf is shimming some commands like which for some reason? As the asdf.sh file modifies PATH env var to place itself ahead of any other binaries(understandable), it's refusing to let the command work..
Can be any binary queried with which, not necessarily something that asdf manages, still outputs this(run in a directory that isn't a nodejs project which is all I use asdf for presently):
$ which grep
asdf: No preset version installed for command which
Please install the missing version by running one of the following:
asdf install nodejs 14.4.0
or add one of the following in your .tool-versions file:
nodejs 11.3.0
That's probably due to the issue described here: #557 , since I do have such configured properly afaik:
$ asdf current
nodejs 14.4.0 (set by /home/polarathene/.tool-versions)
If the command cannot be run for whatever reason, then is it possible to run the system utility instead of blocking it like it is presently? I could delete the shim, but I assume it's there for a reason (unclear why though as the system binary should work just the same? I suppose it's adding an additional location to search for binaries).
To Reproduce
I have no idea, I've only setup asdf on linux and installed node, then at some point this year installed a newer version of Node.
Expected behavior
I'd expect which to work.
Actual behavior
asdf complained about not being configured for the command which? Preventing it from being used even though there is a system utility.
Environment
OS: Manjaro Linux (latest updates, no versions as it's rolling release)
asdf version: version: v0.7.8-4a3e3d6
asdf plugins installed: nodejs
The text was updated successfully, but these errors were encountered:
I do recall many months ago finding which processes that were active and draining CPU for some reason and they were being spawned from the asdf which binary. I haven't seen that cause any issues since, so I assume that's no longer an issue, just mentioning it as a related issue I recall with asdf and which.
Docs suggested using the direnv plugin which might of worked(didn't try it) as it apparently bypasses the shims.
Deleted the older nodejs version, and the which shim along with many others were removed. So the error suggesting the solution at the end probably would have worked by switching to the older version? It just wasn't clear about why it was suggesting the older version.
Closing as effectively resolved, which binary was installed by some global package in the earlier nodejs version or by that version the plugin provided itself. Not used in the newer version installed, hence the confusion :)
Describe the bug
asdf
is shimming some commands likewhich
for some reason? As theasdf.sh
file modifiesPATH
env var to place itself ahead of any other binaries(understandable), it's refusing to let the command work..asdf/asdf.sh
Lines 23 to 29 in e0142ee
Can be any binary queried with
which
, not necessarily something thatasdf
manages, still outputs this(run in a directory that isn't a nodejs project which is all I use asdf for presently):That's probably due to the issue described here: #557 , since I do have such configured properly afaik:
If the command cannot be run for whatever reason, then is it possible to run the system utility instead of blocking it like it is presently? I could delete the shim, but I assume it's there for a reason (unclear why though as the system binary should work just the same? I suppose it's adding an additional location to search for binaries).
To Reproduce
I have no idea, I've only setup
asdf
on linux and installed node, then at some point this year installed a newer version of Node.Expected behavior
I'd expect
which
to work.Actual behavior
asdf complained about not being configured for the command
which
? Preventing it from being used even though there is a system utility.Environment
OS: Manjaro Linux (latest updates, no versions as it's rolling release)
asdf version: version: v0.7.8-4a3e3d6
asdf plugins installed: nodejs
The text was updated successfully, but these errors were encountered: