I'm currently learning Elixir by going through the OTP and mix tutorial on the elixir-lang website, and I'm having trouble finding out how to recompile and reload the project from within the shell.
In Erlang I would do make:all([load])
and it would compile and load any changes that occurred. However, in iex
that always says :up_to_date
, which does make sense, as Elixir uses mix for it's compiling needs.
I can't find any equivalent from within iex.
Best Answer
You can use the
IEx.Helpers.recompile/0
function.From https://github.com/elixir-lang/elixir/blob/v1.2.4/lib/iex/lib/iex/helpers.ex#L56-L93