Pergunta

I am trying to build this (https://github.com/dch/rebar/) rebar.


C:\Projects\rebar>bootstrap
Recompile: src/rebar_core
==> rebar (compile)
Uncaught error in rebar_core: {'EXIT',
                               {badarg,
                                [{re,split,
                                  [[85,83,69,82,68,79,77,65,73,78,61,65,108,
                                    101,120,45,1055,1050],
                                   "=",
                                   [{return,list},{parts,2}]],
                                  [{file,"re.erl"},{line,154}]},
                                 {rebar_port_compiler,'-os_env/0-lc$^0/1-0-',
                                  1,
                                  [{file,"src/rebar_port_compiler.erl"},
                                   {line,371}]},
                                 {rebar_port_compiler,'-os_env/0-lc$^0/1-0-',
                                  1,
                                  [{file,"src/rebar_port_compiler.erl"},
                                   {line,372}]},
                                 {rebar_port_compiler,os_env,0,
                                  [{file,"src/rebar_port_compiler.erl"},
                                   {line,371}]},
                                 {rebar_port_compiler,setup_env,1,
                                  [{file,"src/rebar_port_compiler.erl"},
                                   {line,150}]},
                                 {rebar_core,'-setup_envs/2-lc$^0/1-0-',2,
                                  [{file,"src/rebar_core.erl"},{line,364}]},
                                 {rebar_core,'-setup_envs/2-lc$^0/1-0-',2,
                                  [{file,"src/rebar_core.erl"},{line,365}]},
                                 {rebar_core,setup_envs,2,
                                  [{file,"src/rebar_core.erl"},{line,364}]}]}}
Foi útil?

Solução

I have not the same version of erlang as you (line 154 of re.erl is not the split function) so I cannot finish the analysis. But you can try to understand from where come these weird characters [1055,1050] at the end of the answer from windows to the function os:getenv(). It seems it crash the re:split.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top