bug: Bad error message
mcandre opened this issue · 0 comments
mcandre commented
Describe the Bug
When I try to run the safety check
command from the PyPI safety package on a freshly provisioned PyPI installation, then asdf complains.
Steps to Reproduce
pip3 install safety
safety check
Expected Behaviour
ASDF should identify that the correct version of Python is already installed and activated.
In fact, if ASDF is able to detect that the safety
executable is missing to trigger an ASDF error message, then it should go ahead and automatically execute asdf reshim
on behalf of the user.
Or, ASDF could implement executable directories in a more natural way that doesn't require any shims at all. Of all the version managers I've used, ASDF appears to be the only one that requires the user to manually inform it to fix shims every time a new CLI package is installed.
Actual Behaviour
No preset version installed for command safety
Please install a version by running one of the following:
asdf install python 3.12.1
Environment
OS:
Darwin najma.attlocal.net 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 02:03:51 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T6000 arm64
SHELL:
zsh 5.8.1 (x86_64-apple-darwin22.0)
BASH VERSION:
3.2.57(1)-release
ASDF VERSION:
v0.13.1
ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/Users/andrew/.asdf
ASDF_DIR=/opt/homebrew/opt/asdf/libexec
ASDF_CONFIG_FILE=/Users/andrew/.asdfrc
ASDF INSTALLED PLUGINS:
golang https://mcandre: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@github.com/kennyp/asdf-golang.git master cc8bc47
gradle https://mcandre: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@github.com/rfrancis/asdf-gradle.git master 4adbc6f
java https://mcandre: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@github.com/halcyon/asdf-java.git master dcc991a
nodejs https://mcandre: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@github.com/asdf-vm/asdf-nodejs.git master 65441d3
python https://mcandre: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@github.com/danhper/asdf-python.git master 8505457
ruby https://mcandre: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@github.com/asdf-vm/asdf-ruby.git master 2833323
rust https://mcandre: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@github.com/code-lever/asdf-rust.git master 0c88f99
asdf plugins affected (if relevant)
No response