asdf-vm / asdf-elixir

Elixir plugin for asdf version manager
https://github.com/asdf-vm/asdf
MIT License
465 stars 69 forks source link

Infinite loop in mix/elixir after installing w/o specifying a minor or OTP version #73

Open Deconstrained opened 4 years ago

Deconstrained commented 4 years ago

Steps to reproduce:

  1. Run asdf install elixir 1.9 and asdf global elixir 1.9
  2. Change into to any Elixir project directory
  3. Run mix deps.get

The command will run continuously. It happens for the following reasons:

The latter of these was discovered by making the mix script in this plugin executable.

Stratus3D commented 4 years ago

I am not able to reproduce this on OSX 10.15.1. Elixir installs just fine and mix works as expected. Look in the Elixir 1.9 installation's bin directory (~/.asdf/installs/elixir/1.9/bin for me) I see the mix file has execute permission.

garthk commented 4 years ago

Reproduced by accident on 10.15.4. ~/.asdf/installs/elixir/1.10.2-otp-22/bin/iex and mix had execute permissions. Problem resolved around when asdf install of erlang 22.1.8.1 finished in another console tab, though I'm not sure that's cause and effect.