tacticiankerala / elixir-weather

A command line weather app built using elixir
69 stars 8 forks source link

Issue with execution #3

Closed guido4000 closed 9 years ago

guido4000 commented 9 years ago

Execution fails. Any ideas why? (iex and erl do work.)

@main ➜  elixir-weather git:(master) ./weather Amsterdam

=INFO REPORT==== 7-May-2015::15:45:38 ===
    application: elixir
    exited: {bad_return,
                {{elixir,start,[normal,[]]},
                 {'EXIT',
                     {{badmatch,{error,enotsup}},
                      [{elixir,start,2,[{file,"src/elixir.erl"},{line,34}]},
                       {application_master,start_it_old,4,
                           [{file,"application_master.erl"},{line,272}]}]}}}}
    type: temporary
Failed to start Elixir.
error: {error,
           {elixir,
               {bad_return,
                   {{elixir,start,[normal,[]]},
                    {'EXIT',
                        {{badmatch,{error,enotsup}},
                         [{elixir,start,2,[{file,"src/elixir.erl"},{line,34}]},
                          {application_master,start_it_old,4,
                              [{file,"application_master.erl"},
                               {line,272}]}]}}}}}}

@main ➜  elixir-weather git:(master) iex
Erlang/OTP 17 [erts-6.4] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

Interactive Elixir (1.0.4) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)>
BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded
       (v)ersion (k)ill (D)b-tables (d)istribution
^C%                                                                                                

@main ➜  elixir-weather git:(master) erl
Erlang/OTP 17 [erts-6.4] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

Eshell V6.4  (abort with ^G)
1>
BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded
       (v)ersion (k)ill (D)b-tables (d)istribution
^C%
tacticiankerala commented 9 years ago

I will look into the issue and keep you posted. On May 7, 2015 19:18, "Guido Hoermann" notifications@github.com wrote:

Execution fails. Any ideas why? (iex and erl do work.)

@main ➜ elixir-weather git:(master) ./weather Amsterdam

=INFO REPORT==== 7-May-2015::15:45:38 === application: elixir exited: {bad_return, {{elixir,start,[normal,[]]}, {'EXIT', {{badmatch,{error,enotsup}}, [{elixir,start,2,[{file,"src/elixir.erl"},{line,34}]}, {application_master,start_it_old,4, [{file,"application_master.erl"},{line,272}]}]}}}} type: temporary Failed to start Elixir. error: {error, {elixir, {bad_return, {{elixir,start,[normal,[]]}, {'EXIT', {{badmatch,{error,enotsup}}, [{elixir,start,2,[{file,"src/elixir.erl"},{line,34}]}, {application_master,start_it_old,4, [{file,"application_master.erl"}, {line,272}]}]}}}}}}

@main ➜ elixir-weather git:(master) iex Erlang/OTP 17 [erts-6.4] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

Interactive Elixir (1.0.4) - press Ctrl+C to exit (type h() ENTER for help) iex(1)> BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded (v)ersion (k)ill (D)b-tables (d)istribution ^C%

@main ➜ elixir-weather git:(master) erl Erlang/OTP 17 [erts-6.4] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

Eshell V6.4 (abort with ^G) 1> BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded (v)ersion (k)ill (D)b-tables (d)istribution ^C%

— Reply to this email directly or view it on GitHub https://github.com/tacticiankerala/elixir-weather/issues/3.

tacticiankerala commented 9 years ago

Seems like this could be the reason, https://github.com/elixir-lang/elixir/issues/3235.

I upgraded my Erlang (to ert-6.4) and I was able to reproduce this issue. After I installed Elixir 1.0.4 and then re-compiled the binary, it started working. Can you please verify?

guido4000 commented 9 years ago

Compiling myself did not help, but pulling your update worked. Thank you.