seadynamic8
seadynamic8

Reputation: 177

Elixir: IEx.pry error: IEx shell running?

On Elixir Sips 33 - Pry:

While I'm trying to use IEx.pry, I have something basic like this:

require IEx

defmodule IexPryTest do

  def add(a, b) do
    c = a + b
    IEx.pry
    c
  end
end

I get this Pry error:

iex(1)> IexPryTest.add(1, 2)
Cannot pry #PID<0.88.0> at lib/iex_pry_test.ex:24. Is an IEx shell running?

I think iex is running, since thats where I'm running this from.

I'm on Windows 8.1 if that makes any difference.

Any suggestions to get Pry running? Thanks.

Upvotes: 3

Views: 1066

Answers (1)

sasajuric
sasajuric

Reputation: 6059

I just tried on a Windows 7 VM from the standard command prompt, and this definitely seems like a bug. Perhaps you could open an issue on elixir-lang GitHub?

However, when starting the GUI shell with iex --werl, pry worked. Can you try that one?

Upvotes: 3

Related Questions