Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

IEx h() broken #2084

Closed
slash7 opened this Issue · 4 comments

4 participants

@slash7

Erlang/OTP 17 [RELEASE CANDIDATE 2] [erts-6.0] [source-a74e66a] [64-bit] [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false]

Interactive Elixir (0.12.4) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> clear

iex(2)> h()

                              IEx.Helpers                                   

** (ArgumentError) argument error
(stdlib) re.erl:355: :re.replace("Welcome to Interactive Elixir. You are currently seeing the documentation for the module IEx.Helpers which provides many helpers to make Elixir's shell more joyful to work with.", {:re_pattern, 2, 1, <>}, "\1 (\2)", [{:return, :binary}, :global])
(elixir) lib/io/ansi/docs.ex:274: IO.ANSI.Docs.handle_links/1
(elixir) lib/io/ansi/docs.ex:186: IO.ANSI.Docs.write_text/4
(elixir) lib/io/ansi/docs.ex:160: IO.ANSI.Docs.process_text/5
(iex) lib/iex/introspection.ex:18: IEx.Introspection.h/1
(iex) lib/iex/helpers.ex:104: IEx.Helpers.h/0
iex(2)> h(IEx)

                                  IEx                                       

** (ArgumentError) argument error
(stdlib) re.erl:355: :re.replace("Welcome to IEx.", {:re_pattern, 2, 1, <>}, "\1 (\2)", [{:return, :binary}, :global])
(elixir) lib/io/ansi/docs.ex:274: IO.ANSI.Docs.handle_links/1
(elixir) lib/io/ansi/docs.ex:186: IO.ANSI.Docs.write_text/4
(elixir) lib/io/ansi/docs.ex:160: IO.ANSI.Docs.process_text/5
(iex) lib/iex/introspection.ex:18: IEx.Introspection.h/1
iex(2)>

@yrashk

Works here on v0.13 branch

@ericmj
Owner

You get this error because you are using OTP 17 with an elixir compiled with R16 or vice versa. The compiled beam files for 17 and R16 are not compatible.

@ericmj ericmj closed this
@josevalim
Owner

To clarify, you need to run make clean or mix clean in your projects to start from scratch and recompile them. For Elixir, you can compile from master on R17 by running make clean compile.

@slash7

Thanks for clarifying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.