asdf-java icon indicating copy to clipboard operation
asdf-java copied to clipboard

Unknown command: `asdf which java`

Open rutsatz opened this issue 4 years ago • 3 comments

Today when installing another application from brew, it automatically updated the asdf version.

Now, any command I run in the terminal, it pops up this error:

Unknown command: `asdf which java`
/usr/local/Cellar/asdf/0.9.0/libexec/bin/asdf: line 82: /usr/local/Cellar/asdf/0.8.1_1/libexec/lib/commands/command-help.bash: No such file or directory

And java stopped working:

~ java -version
/Users/rutsatz/.asdf/shims/java: line 5: /usr/local/Cellar/asdf/0.8.1_1/libexec/bin/asdf: No such file or directory
/Users/rutsatz/.asdf/shims/java: line 5: exec: /usr/local/Cellar/asdf/0.8.1_1/libexec/bin/asdf: cannot execute: No such file or directory
Unknown command: `asdf which java`
/usr/local/Cellar/asdf/0.9.0/libexec/bin/asdf: line 82: /usr/local/opt/asdf/lib/commands/command-help.bash: No such file or directory

I'm using the latest version of Mac OS.

rutsatz avatar Dec 20 '21 21:12 rutsatz

I was getting this issue after doing an update as well. I got around it by just uninstalling asdf via homebrew and then reinstalling. Couldn't find a better solution.

peterpandelidis avatar Apr 20 '22 19:04 peterpandelidis

Experiencing this same issue, and uninstalling and reinstalling doesn't work for me on Mac. Even tried grabbing the raw file for 0.9.0 from Github to install, but brew wasn't having it. Please update with a fix!

flybonzai avatar Apr 21 '22 21:04 flybonzai

restarting my computer worked, sourcing iterm and restarting iterm did not.

jrichocean avatar May 20 '22 05:05 jrichocean