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

1

7

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?

Humpage answered 15/1, 2018 at 11:0 Comment(1)
I could start an iex session before changing the files but I often forget to do so. Also I could reset the project state with git but maybe there's an easier way.Humpage
P
18

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
Pyroconductivity answered 15/1, 2018 at 11:3 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.