Morozov
Morozov

Reputation: 3009

How do I run `iex -S mix` without compiling changed files?

Say I'm writing a new module, the code isn't ready yet and I want to test something in the repl. I run iex -S mix and it fails because of compilation errors I didn't intend to fix yet.

I presume there is a last compiled version of my app that I could run with iex. How do I do that?

Upvotes: 7

Views: 851

Answers (1)

José Valim
José Valim

Reputation: 51369

mix is a shortcut to mix run. If you invoke mix help run, you will see there are many options there, including a --no-compile one. Therefore:

iex -S mix run --no-compile

Upvotes: 18

Related Questions