Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build IElixir #53

Open
enmasse opened this issue Feb 7, 2020 · 2 comments
Open

Can't build IElixir #53

enmasse opened this issue Feb 7, 2020 · 2 comments

Comments

@enmasse
Copy link

enmasse commented Feb 7, 2020

Running mix test gives this error message:

** (Mix) Could not start application ielixir: IElixir.start(:normal, []) returned an error: shutdown: failed to start child: IElixir.Sandbox ** (EXIT) an exception was raised: ** (UndefinedFunctionError) function :elixir.eval/2 is undefined or private (elixir 1.10.0) :elixir.eval('import IEx.Helpers', []) (ielixir 0.9.18) lib/ielixir/sandbox.ex:220: IElixir.Sandbox.prepare_clear_state/0 (ielixir 0.9.18) lib/ielixir/sandbox.ex:31: IElixir.Sandbox.init/1 (stdlib 3.11.2) gen_server.erl:374: :gen_server.init_it/2 (stdlib 3.11.2) gen_server.erl:342: :gen_server.init_it/6 (stdlib 3.11.2) proc_lib.erl:249: :proc_lib.init_p_do_apply/3

I will see if I can try to resolve it myself, in that case I will put up a PR.

@enmasse
Copy link
Author

enmasse commented Feb 7, 2020

defp prepare_clear_state() do {_, binding, env, scope} = :elixir.eval('import IEx.Helpers', []) %{execution_count: 1, binding: binding, env: env, scope: scope} end

I don't know what :elixir.eval/2 is supposed to return as I can't find any documentation for it.

@Ljzn
Copy link

Ljzn commented May 21, 2020

defp prepare_clear_state() do {_, binding, env, scope} = :elixir.eval('import IEx.Helpers', []) %{execution_count: 1, binding: binding, env: env, scope: scope} end

I don't know what :elixir.eval/2 is supposed to return as I can't find any documentation for it.

The :elixir.eval/2 has been deleted in the recent version of the elixir. I made a PR #54 to make IElixir works with elixir 1.10. But the fix is not perfect, still failed some tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants