asdf-vm / asdf

Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more
https://asdf-vm.com/
MIT License
21.44k stars 767 forks source link

upon inintial install, the generated "tool-versions" file doesn't align with the versions installed by `asdf install X latest` #782

Closed isleib closed 4 years ago

isleib commented 4 years ago

I installed erlang, elixir, and node using asdf, with the following commands: asdf install erlang latest asdf install elixir latest asdf install node latest

I then received this error when trying to run erl, iex, or node: No preset version installed for command iex Please install a version by running one of the following:

asdf install [version for respective language which was installed by asdf (which was accurate)]

To Reproduce

Setting up initially on a fresh machine using asdf, I ran into the issue above.

Expected behavior

The .tool-versions should have the versions installed by the "latest" argument

Actual behavior

The .tool-versions file had a previous version

Environment

OS:

Linux pop-os 5.4.0-7634-generic x86_64 x86_64 x86_64 GNU/Linux

asdf version:

v0.8.0-rc1-e0142ee

asdf plugins affected (if relevant):

N/A

asdf plugins installed:

<me>:~/workspace$ asdf plugin list all 
1password                     https://github.com/samtgarson/asdf-1password.git
act                           https://github.com/grimoh/asdf-act.git
adr-tools                     https://gitlab.com/td7x/asdf/adr-tools.git
aks-engine                    https://github.com/robsonpeixoto/asdf-aks-engine.git
alp                           https://github.com/asdf-community/asdf-alp.git
argo                          https://github.com/sudermanjr/asdf-argo.git
argocd                        https://github.com/beardix/asdf-argocd.git
aria2                         https://github.com/asdf-community/asdf-aria2.git
asciidoctorj                  https://github.com/gliwka/asdf-asciidoctorj.git
bat                           https://gitlab.com/wt0f/asdf-bat.git
bazel                         https://github.com/rajatvig/asdf-bazel.git
binnacle                      https://github.com/Traackr/asdf-binnacle.git
bitwarden                     https://github.com/vixus0/asdf-bitwarden.git
brig                          https://github.com/Ibotta/asdf-brig.git
buildpack                     https://github.com/johnlayton/asdf-buildpack.git
bundler                       https://github.com/jonathanmorley/asdf-bundler.git
caddy                         https://github.com/salasrod/asdf-caddy.git
ccache                        https://github.com/asdf-community/asdf-ccache.git
cf                            https://github.com/mattysweeps/asdf-cf.git
chezscheme                    https://github.com/asdf-community/asdf-chezscheme.git
chicken                       https://github.com/evhan/asdf-chicken.git
clojure                       https://github.com/halcyon/asdf-clojure.git
clusterctl                    https://github.com/pfnet-research/asdf-clusterctl.git
cmake                         https://github.com/srivathsanmurali/asdf-cmake.git
cockroach                     https://github.com/salasrod/asdf-cockroach.git
concourse                     https://github.com/mattysweeps/asdf-concourse.git
conduit                       https://github.com/gmcabrita/asdf-conduit.git
conform                       https://github.com/skyzyx/asdf-conform.git
conftest                      https://github.com/looztra/asdf-conftest.git
consul                        https://github.com/Banno/asdf-hashicorp.git
container-diff                https://github.com/cgroschupp/asdf-container-diff.git
coq                           https://github.com/gingerhot/asdf-coq.git
crc                           https://github.com/sqtran/asdf-crc.git
crystal                       https://github.com/asdf-community/asdf-crystal.git
cue                           https://github.com/asdf-community/asdf-cue.git
dart                          https://github.com/PatOConnor43/asdf-dart.git
deno                          https://github.com/asdf-community/asdf-deno.git
dep                           https://github.com/paxosglobal/asdf-dep.git
desk                          https://github.com/endorama/asdf-desk.git
dhall                         https://github.com/aaaaninja/asdf-dhall.git
digdag                        https://github.com/jtakakura/asdf-digdag.git
direnv                        https://github.com/asdf-community/asdf-direnv.git
dive                          https://github.com/looztra/asdf-dive.git
dmd                           https://github.com/sylph01/asdf-dmd.git
docker-slim                   https://github.com/everpeace/asdf-docker-slim.git
doctl                         https://github.com/maristgeek/asdf-doctl.git
dome                          https://github.com/jtakakura/asdf-dome.git
dotnet-core                   https://github.com/emersonsoares/asdf-dotnet-core.git
dotty                         https://github.com/vic/asdf-dotty.git
draft                         https://github.com/kristoflemmens/asdf-draft.git
dust                          https://github.com/looztra/asdf-dust.git
eksctl                        https://github.com/elementalvoid/asdf-eksctl.git
elasticsearch                 https://github.com/asdf-community/asdf-elasticsearch.git
elixir                       *https://github.com/asdf-vm/asdf-elixir.git
elm                           https://github.com/asdf-community/asdf-elm.git
embulk                        https://github.com/yuokada/asdf-embulk.git
emsdk                         https://github.com/RobLoach/asdf-emsdk.git
erlang                       *https://github.com/asdf-vm/asdf-erlang.git
esy                           https://github.com/asdf-community/asdf-esy.git
etcd                          https://github.com/particledecay/asdf-etcd.git
fd                            https://gitlab.com/wt0f/asdf-fd.git
firebase                      https://github.com/jthegedus/asdf-firebase.git
flutter                       https://github.com/oae/asdf-flutter.git
fluxctl                       https://github.com/stefansedich/asdf-fluxctl.git
fzf                           https://github.com/kompiro/asdf-fzf.git
gauche                        https://github.com/sakuro/asdf-gauche.git
gcloud                        https://github.com/jthegedus/asdf-gcloud.git
getenvoy                      https://github.com/asdf-community/asdf-getenvoy.git
ghq                           https://github.com/kajisha/asdf-ghq.git
github-cli                    https://github.com/bartlomiejdanek/asdf-github-cli.git
github-markdown-toc           https://github.com/skyzyx/asdf-github-markdown-toc.git
gitui                         https://github.com/looztra/asdf-gitui.git
gleam                         https://github.com/vic/asdf-gleam.git
gohugo                        https://bitbucket.org/mgladdish/asdf-gohugo.git
golang                        https://github.com/kennyp/asdf-golang.git
golangci-lint                 https://github.com/hypnoglow/asdf-golangci-lint.git
gomplate                      https://github.com/sneakybeaky/asdf-gomplate.git
goss                          https://github.com/raimon49/asdf-goss.git
graalvm                       https://github.com/vic/asdf-graalvm.git
gradle                        https://github.com/rfrancis/asdf-gradle.git
grails                        https://github.com/weibemoura/asdf-grails.git
groovy                        https://github.com/weibemoura/asdf-groovy.git
guile                         https://github.com/indiebrain/asdf-guile.git
hadolint                      https://github.com/looztra/asdf-hadolint.git
haskell                       https://github.com/vic/asdf-haskell.git
haxe                          https://github.com/asdf-community/asdf-haxe.git
helm                          https://github.com/Antiarchitect/asdf-helm.git
helm-cr                       https://github.com/Antiarchitect/asdf-helm-cr.git
helm-ct                       https://github.com/tablexi/asdf-helm-ct.git
helm-docs                     https://github.com/sudermanjr/asdf-helm-docs.git
helmfile                      https://github.com/feniix/asdf-helmfile.git
heptio-authenticator-aws      https://github.com/neerfri/asdf-heptio-authenticator-aws.git
hub                           https://github.com/vixus0/asdf-hub.git
idris                         https://github.com/vic/asdf-idris.git
idris2                        https://github.com/asdf-community/asdf-idris2.git
imagemagick                   https://github.com/mangalakader/asdf-imagemagick.git
io                            https://github.com/mracos/asdf-io.git
istioctl                      https://github.com/rafik8/asdf-istioctl.git
java                          https://github.com/halcyon/asdf-java.git
jb                            https://github.com/beardix/asdf-jb.git
jmespath                      https://github.com/skyzyx/asdf-jmespath.git
jq                            https://github.com/focused-labs/asdf-jq.git
jsonnet                       https://github.com/Banno/asdf-jsonnet.git
julia                         https://github.com/rkyleg/asdf-julia.git
jx                            https://github.com/vbehar/asdf-jx.git
k14s                          https://github.com/k14s/asdf-k14s.git
k3d                           https://github.com/spencergilbert/asdf-k3d.git
k6                            https://github.com/grimoh/asdf-k6.git
k9s                           https://github.com/looztra/asdf-k9s.git
kind                          https://github.com/johnlayton/asdf-kind.git
kops                          https://github.com/Antiarchitect/asdf-kops.git
kotlin                        https://github.com/missingcharacter/asdf-kotlin.git
kscript                       https://github.com/edgelevel/asdf-kscript.git
ksonnet                       https://github.com/Banno/asdf-ksonnet.git
kube-capacity                 https://github.com/looztra/asdf-kube-capacity.git
kubectl                       https://github.com/Banno/asdf-kubectl.git
kubectl-bindrole              https://github.com/looztra/asdf-kubectl-bindrole.git
kubectx                       https://gitlab.com/wt0f/asdf-kubectx.git
kubefedctl                    https://github.com/kvokka/asdf-kubefedctl.git
kubeseal                      https://github.com/stefansedich/asdf-kubeseal.git
kubesec                       https://github.com/vitalis/asdf-kubesec.git
kubeval                       https://github.com/stefansedich/asdf-kubeval.git
kubie                         https://github.com/johnhamelink/asdf-kubie.git
kustomize                     https://github.com/Banno/asdf-kustomize.git
lean                          https://github.com/asdf-community/asdf-lean.git
lfe                           https://github.com/vic/asdf-lfe.git
linkerd                       https://github.com/vaynerx/asdf-linkerd.git
logtalk                       https://github.com/LogtalkDotOrg/asdf-logtalk.git
lua                           https://github.com/Stratus3D/asdf-lua.git
luaJIT                        https://github.com/smashedtoatoms/asdf-luaJIT.git
maven                         https://github.com/halcyon/asdf-maven.git
mc                            https://github.com/penpyt/asdf-mc.git
meson                         https://github.com/asdf-community/asdf-meson.git
micronaut                     https://github.com/weibemoura/asdf-micronaut.git
mill                          https://github.com/vic/asdf-mill.git
minikube                      https://github.com/alvarobp/asdf-minikube.git
minio                         https://github.com/aeons/asdf-minio.git
minishift                     https://github.com/sqtran/asdf-minishift.git
mkcert                        https://github.com/salasrod/asdf-mkcert.git
mlton                         https://github.com/asdf-community/asdf-mlton.git
mockery                       https://github.com/cabify/asdf-mockery.git
mongodb                       https://github.com/sylph01/asdf-mongodb.git
mysql                         https://github.com/iroddis/asdf-mysql.git
neko                          https://github.com/asdf-community/asdf-neko.git
neovim                        https://github.com/richin13/asdf-neovim.git
nim                           https://github.com/rfrancis/asdf-nim.git
ninja                         https://github.com/asdf-community/asdf-ninja.git
nodejs                       *https://github.com/asdf-vm/asdf-nodejs.git
nomad                         https://github.com/Banno/asdf-hashicorp.git
oc                            https://github.com/sqtran/asdf-oc.git
ocaml                         https://github.com/asdf-community/asdf-ocaml.git
opam                          https://github.com/asdf-community/asdf-opam.git
openresty                     https://github.com/smashedtoatoms/asdf-openresty.git
operator-sdk                  https://github.com/Medium/asdf-operator-sdk.git
packer                        https://github.com/Banno/asdf-hashicorp.git
php                           https://github.com/asdf-community/asdf-php.git
please                        https://github.com/asdf-community/asdf-please.git
pluto                         https://github.com/FairwindsOps/asdf-pluto.git
pnpm                          https://github.com/jonathanmorley/asdf-pnpm.git
poetry                        https://github.com/crflynn/asdf-poetry.git
popeye                        https://github.com/nlamirault/asdf-popeye.git
postgres                      https://github.com/smashedtoatoms/asdf-postgres.git
protoc                        https://github.com/paxosglobal/asdf-protoc.git
pulumi                        https://github.com/canha/asdf-pulumi.git
python                        https://github.com/danhper/asdf-python.git
R                             https://github.com/iroddis/asdf-R.git
racket                        https://github.com/vic/asdf-racket.git
rancher                       https://github.com/abinet/asdf-rancher.git
rbac-lookup                   https://github.com/looztra/asdf-rbac-lookup.git
rclone                        https://github.com/johnlayton/asdf-rclone.git
rebar                         https://github.com/Stratus3D/asdf-rebar.git
reckoner                      https://github.com/mjhuber/asdf-reckoner.git
redis                         https://github.com/smashedtoatoms/asdf-redis.git
redskyctl                     https://github.com/sudermanjr/asdf-redskyctl.git
reg                           https://github.com/looztra/asdf-reg.git
riak                          https://github.com/smashedtoatoms/asdf-riak.git
riff                          https://github.com/abinet/asdf-riff.git
ripgrep                       https://gitlab.com/wt0f/asdf-ripgrep.git
rke                           https://github.com/particledecay/asdf-rke.git
rlwrap                        https://github.com/asdf-community/asdf-rlwrap.git
ruby                          https://github.com/asdf-vm/asdf-ruby.git
rust                          https://github.com/code-lever/asdf-rust.git
saml2aws                      https://github.com/elementalvoid/asdf-saml2aws.git
sbcl                          https://github.com/smashedtoatoms/asdf-sbcl.git
sbt                           https://github.com/bram2000/asdf-sbt.git
scala                         https://github.com/mtatheonly/asdf-scala.git
scenery                       https://github.com/skyzyx/asdf-scenery.git
serf                          https://github.com/Banno/asdf-hashicorp.git
shellcheck                    https://github.com/luizm/asdf-shellcheck.git
shfmt                         https://github.com/luizm/asdf-shfmt.git
skaffold                      https://github.com/kristoflemmens/asdf-skaffold.git
smlnj                         https://github.com/samontea/asdf-smlnj.git
snyk                          https://github.com/nirfuchs/asdf-snyk.git
solidity                      https://github.com/refillic/asdf-solidity.git
sops                          https://github.com/feniix/asdf-sops.git
sopstool                      https://github.com/elementalvoid/asdf-sopstool.git
spark                         https://github.com/joshuaballoch/asdf-spark.git
sqlite                        https://github.com/cLupus/asdf-sqlite.git
starship                      https://github.com/grimoh/asdf-starship.git
stern                         https://github.com/looztra/asdf-stern.git
swift                         https://github.com/fcrespo82/asdf-swift.git
swiftlint                     https://github.com/klundberg/asdf-swiftlint.git
swiprolog                     https://github.com/mracos/asdf-swiprolog.git
talos                         https://github.com/particledecay/asdf-talos.git
tanka                         https://github.com/trotttrotttrott/asdf-tanka.git
tekton-cli                    https://github.com/johnhamelink/asdf-tekton-cli.git
terraform                     https://github.com/Banno/asdf-hashicorp.git
terraform-docs                https://github.com/looztra/asdf-terraform-docs.git
terraform-lsp                 https://github.com/bartlomiejdanek/terraform-lsp.git
terraform-validator           https://github.com/looztra/asdf-terraform-validator.git
terragrunt                    https://github.com/lotia/asdf-terragrunt.git
tflint                        https://github.com/skyzyx/asdf-tflint.git
tfsec                         https://github.com/woneill/asdf-tfsec.git
tilt                          https://github.com/eaceaser/asdf-tilt.git
tmux                          https://github.com/aphecetche/asdf-tmux.git
trdsql                        https://github.com/johnlayton/asdf-trdsql.git
tridentctl                    https://github.com/asdf-community/asdf-tridentctl.git
v                             https://github.com/ndac-todoroki/asdf-v.git
vault                         https://github.com/Banno/asdf-hashicorp.git
velero                        https://github.com/looztra/asdf-velero.git
wren-cli                      https://github.com/jtakakura/asdf-wren-cli.git
yarn                          https://github.com/twuni/asdf-yarn.git
yq                            https://github.com/sudermanjr/asdf-yq.git
zig                           https://github.com/cheetah/asdf-zig.git
zola                          https://github.com/salasrod/asdf-zola.git
jthegedus commented 4 years ago

asdf install does not automatically add versions to your .tool-versions file. You need to explicitly override your .tool-versions config with either asdf local or asdf global commands.

isleib commented 4 years ago

Ok, I didn't know this was intended. Feel free to close

jthegedus commented 4 years ago

No problem @isleib If you find any gaps in our documentation please point them out as we want the process to be smooth for all users 😄