If you want to shutdown safely then :io.stop()
is the better choice.
I usually import it as stop
via the .iex.exs
file.
If you want to shutdown safely then :io.stop()
is the better choice.
I usually import it as stop
via the .iex.exs
file.
The workaround worked for me.
Elixir 1.7, Erl 21.0 - on windows
Many thanks
I also have the issue that ctrl-C does not seem to have any effect.
I can exit iex with :erlang.halt
I also mistakenly pressed ctrl-V and noticed that it pasted in the contents of my windows clipboard, so I can only assume that ctrl-C is executing the ‘copy’ shortcut. Not sure if this helps.
I am on Windows 10 and just installed the latest version of elixir and OTP:
_Erlang/OTP 21 [erts-10.0.1] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1]_
_Elixir 1.7.3 (compiled with Erlang/OTP 19)_
Btw, this has been fixed on Erlang/OTP 21.1. I will update the installer to provide installing 21.1 as an option.
I am using Erlang/OTP 21.1 and Elixir 17.3, but I still cannot kill the VM with Ctrl+C on Windows.
More precisely, I cannot stop a Phoenix app running on Git Bash (MINGW64).
Same, here.
Use System.halt()
in the meanwhile.