alchemist.el
alchemist.el copied to clipboard
alchemist-iex-run doesn't work with pry
Easy enough to reproduce:
iex(1)> require IEx
require IEx
IEx
iex(2)> IEx.pry
IEx.pry
Cannot pry #PID<0.81.0> at iex:2. Is an IEx shell running?
{:error, :no_iex}
This problem occurs with shell
and eshell
. Both term
and ansi-term
handle IEx.pry
correctly.
However, I'm not sure to which extent this is a problem with alchemist instead of a problem with Elixir.
It works fine with alchemist.vim, so I suspect that it has to do with this plugin.
I assumed this had to do emacs, was I wrong?
Which shell does alchemist.vim go to?
Also we cannot run the method from normal terminal due to this. Whenever it hits IEx
line it will just throw an error. However when we are not using emacs/spacemacs and then when we run iex -S mix
from terminal, it works as expected.
2 years later and I still have the same problem. Now that I have finally made the switch to spacemacs, I cannot debug my apps the way I used to.
Although not an ideal solution, you can run iEX pry if you use the multi-term instead of eshell.