Skip to content

Side effect of mix compile in iex -S mix session #1050

Closed
@alco

Description

@alco

When I run iex -S mix, if there is some work for mix to perform (e.g. compile the source), iex will receive an exit message upon launch.

λ mix clean

λ iex -S mix
Erlang R15B03 (erts-5.9.3.1) [source] [64-bit] [smp:8:8] [async-threads:0] [hipe] [kernel-poll:false] [dtrace]

Compiled lib/gochan.ex
Generated gochan.app
Interactive Elixir (0.8.1) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> flush()
{:EXIT,#PID<0.47.0>,:normal}
:ok

Running iex -S mix the second time starts a clean shell, because nothing needs to be compiled this time:

λ iex -S mix
Erlang R15B03 (erts-5.9.3.1) [source] [64-bit] [smp:8:8] [async-threads:0] [hipe] [kernel-poll:false] [dtrace]

Interactive Elixir (0.8.1) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> flush()
:ok

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions