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: removing asdf shim does not work in pro tip #192

Open
richtong opened this issue Dec 30, 2024 · 2 comments
Open

bug: removing asdf shim does not work in pro tip #192

richtong opened this issue Dec 30, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@richtong
Copy link

Describe the Bug

This seems like a documentation bug, but in the Protip it says that you should not source asdf.sh and that you should set the PATH=$PATH:$HOME/.asdf/bin

But there is no .asdf/bin directory at least as of Dec 2024

Steps to Reproduce

  1. Go to $HOME/.asdf
  2. look for bin
  3. this does not exist

Expected Behaviour

Should see the shims in binary

Actual Behaviour

NO .bin directory

Debug Output

direnv: loading ~/.envrc
direnv: using asdf
direnv: Creating env file /Users/rich/.cache/asdf-direnv/env/2921557165-3863893377-3300622412-58942932
direnv: loading ~/.cache/asdf-direnv/env/2921557165-3863893377-3300622412-58942932
direnv: using asdf golang 1.23.2
direnv: loading ~/.asdf/plugins/golang/bin/exec-env
direnv: using asdf direnv 2.35.0
direnv: using asdf python 3.11.10
direnv: using asdf uv 0.4.17
direnv: using asdf pipx 1.7.1
direnv: using asdf ruby 3.3.4
direnv: loading ~/.asdf/plugins/ruby/bin/exec-env
direnv: using asdf nodejs 20.18.1
direnv: using asdf java openjdk-18
direnv: loading ~/.asdf/plugins/java/bin/exec-env
python 3.11.10
direnv: export +GOBIN +GOPATH +GOROOT +RUBYLIB +UV_PROJECT_ENVIRONMENT +VIRTUAL_ENV +WS_DIR +WS_ORG ~PATH


The .envrc generated is:


### Do not edit. This was autogenerated by 'asdf direnv envrc' from /Users/rich/.tool-versions ###
log_status using asdf golang 1.23.2
PATH_add /Users/rich/.asdf/installs/golang/1.23.2/packages/bin
PATH_add /Users/rich/.asdf/installs/golang/1.23.2/go/bin
PATH_add /Users/rich/.asdf/installs/golang/1.23.2/bin
ASDF_INSTALL_TYPE='version' ASDF_INSTALL_VERSION='1.23.2' ASDF_INSTALL_PATH='/Users/rich/.asdf/installs/golang/1.23.2' source_env /Users/rich/.asdf/plugins/golang/bin/exec-env
watch_file /Users/rich/.tool-versions
log_status using asdf direnv 2.35.0
PATH_add /Users/rich/.asdf/installs/direnv/2.35.0/bin
log_status using asdf python 3.11.10
PATH_add /Users/rich/.asdf/plugins/python/shims
PATH_add /Users/rich/.asdf/installs/python/3.11.10/bin
log_status using asdf uv 0.4.17
PATH_add /Users/rich/.asdf/installs/uv/0.4.17/bin
log_status using asdf pipx 1.7.1
PATH_add /Users/rich/.asdf/installs/pipx/1.7.1/bin
log_status using asdf ruby 3.3.4
PATH_add /Users/rich/.asdf/installs/ruby/3.3.4/lib/ruby/gems/3.3.0/bin
PATH_add /Users/rich/.asdf/installs/ruby/3.3.4/bin
ASDF_INSTALL_TYPE='version' ASDF_INSTALL_VERSION='3.3.4' ASDF_INSTALL_PATH='/Users/rich/.asdf/installs/ruby/3.3.4' source_env /Users/rich/.asdf/plugins/ruby/bin/exec-env
log_status using asdf nodejs 20.18.1
PATH_add /Users/rich/.asdf/plugins/nodejs/shims
PATH_add /Users/rich/.asdf/installs/nodejs/20.18.1/bin
log_status using asdf java openjdk-18
PATH_add /Users/rich/.asdf/installs/java/openjdk-18/bin
ASDF_INSTALL_TYPE='version' ASDF_INSTALL_VERSION='openjdk-18' ASDF_INSTALL_PATH='/Users/rich/.asdf/installs/java/openjdk-18' source_env /Users/rich/.asdf/plugins/java/bin/exec-env
@richtong richtong added the bug Something isn't working label Dec 30, 2024
@jfly
Copy link
Contributor

jfly commented Dec 30, 2024

@richtong, where is asdf actually installed for you? (which -a asdf). I will accept a PR updating the docs =)

@richtong
Copy link
Author

richtong commented Jan 7, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants