-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
"No preset version installed for command clear" after installing python 3.12.3 and anaconda3-2024.02-1 #187
Comments
It's worse than just
All I really want out of all this is
They do define some unique environment variables, but they all seem to depend on
I suppose only the shells which are also supported by asdf need to be handled here. |
Provide environment information
To Reproduce
asdf install python 3.12.3
asdf global python 3.12.3
asdf install python anaconda3-2024.02-1
asdf global python anaconda3-2024.02-1
asdf global python 3.12.3
Restart terminal or $SHELL
enter "clear"
I found closed but related issues on this matter:
asdf-vm/asdf#414
#31
Describe the Bug
After installing python 3.12.3 and anaconda3-2024.02-1 then switching back and forth between versions; the "clear" command on terminal does not work. It does not clear my terminal screen but receive an error message.
➜ ~ clear
No preset version installed for command clear
Please install a version by running one of the following:
asdf install python 3.12.3
or add one of the following versions in your config file at /Users/USERNAME/.tool-versions
python anaconda3-2024.02-1
➜ ~ cat .tool-versions
node 20.12.2
python 3.12.3
java zulu-javafx-21.34.19
This error does not occur when I switch back to anaconda3-2024.02-1 from python 3.12.3 and enter "clear" when I have set python 3.12.3 globally.
This also occurred on my Ubuntu machine. However, I "sudo apt reinstall ncurses-bin" and this fixed the issue for ubuntu.
Work around for macOS:
brew link --force ncurses
echo 'export PATH="/opt/homebrew/opt/ncurses/bin:$PATH"' >> ~/.zshrc
$SHELL
Expected Behaviour
After switching from anaconda to python 3.12.3 by using the asdf global command I should be able to clear my terminal screen without any issues. I am not sure why asdf shims or has a clear or why it supersedes the system's clear.
The text was updated successfully, but these errors were encountered: