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: [0.16] when cd / on unix, it doesn't resolve versions correctly #1878

Closed
nasxisbest opened this issue Feb 3, 2025 · 1 comment
Closed
Labels

Comments

@nasxisbest
Copy link

Describe the Bug

❯ cd /
❯ asdf current
Name            Version         Source          Installed
java            ______          ______
nodejs          ______          ______
python          ______          ______
❯ echo $USER
dmytro.soltysiuk.-nd
❯ python
No version is set for command python
Consider adding one of the following versions in your config file at //.tool-versions
python 3.13.1%

This prevents editors like VScode to resolve versions of installed compilers/interpreters, e.g. vscode-python probably tries to resolve python version from the root FS context (/):

Image

Steps to Reproduce

As seen in issue.

Expected Behaviour

asdf should've resolved it from current user's home, eg. from $USER variable

❯ echo $USER
dmytro.soltysiuk.-nd

asdf could use this variable to understand the location of current "global" asdf versions file

Actual Behaviour

Is not able to resolve version for the binary.

Environment

❯ asdf info
OS:
Darwin MN6P92HJN4 23.6.0 Darwin Kernel Version 23.6.0: Wed Jul 31 20:50:00 PDT 2024; root:xnu-10063.141.1.700.5~1/RELEASE_ARM64_T6031 arm64 arm Darwin

SHELL:
zsh 5.9 (x86_64-apple-darwin23.0)

BASH VERSION:
5.2.37(1)-release

ASDF VERSION:
v0.16.0

ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/Users/dmytro.soltysiuk.-nd/.asdf
ASDF_CONFIG_FILE=/Users/dmytro.soltysiuk.-nd/.asdfrc

ASDF INSTALLED PLUGINS:
java      https://github.com/halcyon/asdf-java.git   7c7ce22c2dc1ce084aa23d6aec60698e73dc9046
nodejs    https://github.com/asdf-vm/asdf-nodejs.git 93bd217ba74f05080eebb7d8e1c146a385b01d7f
python    https://github.com/danhper/asdf-python.git a3a01856098d6d2b9642e382f5b38e70275726d1

asdf plugins affected (if relevant)

No response

@nasxisbest nasxisbest added the bug label Feb 3, 2025
@Stratus3D
Copy link
Member

Closing as this is a duplicate of #1860. Please follow that issue for the resolution.

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