Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Upgraded to asdf 0.9.0 with Homebrew - command-help.bash file not found #1161

Closed
josephearl opened this issue Jan 14, 2022 · 7 comments
Closed
Labels

Comments

@josephearl
Copy link

josephearl commented Jan 14, 2022

Describe the Bug

libexec/bin/asdf: line 82: /usr/local/opt/asdf/lib/commands/command-help.bash: No such file or directory

In my .zshrc I have set

export ASDF_DATA_DIR="$HOME/.asdf"
export ASDF_DIR="$(brew --prefix asdf)"
source "$ASDF_DIR/libexec/asdf.sh"

Steps to Reproduce

Upgraded from older version of asdf with home-brew upgrade asdf

Expected Behaviour

It works and the command directory and files exist

Actual Behaviour

It does not work and the commands directory does not exist

lib directory only contains 2 files:

ls /usr/local/opt/asdf/lib
asdf.fish asdf.sh

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

Environment

asdf does not work

asdf plugins affected (if relevant)

No response

@josephearl josephearl added the bug label Jan 14, 2022
@josephearl
Copy link
Author

I have tried uninstalling and re-installing asdf, still there is no commands directory in lib

@josephearl
Copy link
Author

After manually copying that folder from source I get another error:

cat: /usr/local/opt/asdf/help.txt: No such file or directory

@josephearl
Copy link
Author

josephearl commented Jan 14, 2022

After manually copying the help.txt and version.txt it works, but none of this should be necessary - all these files should be installed with Homebrew

@josephearl
Copy link
Author

And I still get a lot of warnings when I do asdf help from my plugins:

find: /Users/joseph/.asdf/plugins/dotnet-core/lib/commands: No such file or directory
find: /Users/joseph/.asdf/plugins/golang/lib/commands: No such file or directory
find: /Users/joseph/.asdf/plugins/groovy/lib/commands: No such file or directory
find: /Users/joseph/.asdf/plugins/java/lib/commands: No such file or directory
find: /Users/joseph/.asdf/plugins/nodejs/lib/commands: No such file or directory
find: /Users/joseph/.asdf/plugins/python/lib/commands: No such file or directory
find: /Users/joseph/.asdf/plugins/ruby/lib/commands: No such file or directory

@josephearl
Copy link
Author

josephearl commented Jan 14, 2022

In the asdf--0.9.0.all.bottle.tar.gz it seems these are in libexec/lib/commands and not lib/commands

@josephearl
Copy link
Author

josephearl commented Jan 14, 2022

So removing export ASDF_DIR="$(brew --prefix asdf)" and reinstalling fixed most of the issues without any manual intervention except from the warnings from plugin commands not existing when I run asdf help

@RobLoach
Copy link

For anyone else Google-ing around for this issue, this find print error was fixed a couple days after the release of 0.9.0 over at #1102 .

@pre pre mentioned this issue Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants