alchemist.el icon indicating copy to clipboard operation
alchemist.el copied to clipboard

alchemist-iex-run doesn't work with pry

Open chowevtfy opened this issue 8 years ago • 6 comments

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}

chowevtfy avatar Aug 16 '16 04:08 chowevtfy

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.

Trevoke avatar Aug 16 '16 11:08 Trevoke

It works fine with alchemist.vim, so I suspect that it has to do with this plugin.

chowevtfy avatar Aug 18 '16 23:08 chowevtfy

I assumed this had to do emacs, was I wrong?

Which shell does alchemist.vim go to?

Trevoke avatar Aug 18 '16 23:08 Trevoke

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.

collegeimprovements avatar Dec 15 '16 06:12 collegeimprovements

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.

gil-air-may avatar Dec 17 '18 13:12 gil-air-may

Although not an ideal solution, you can run iEX pry if you use the multi-term instead of eshell.

gil-air-may avatar Dec 17 '18 13:12 gil-air-may