tsloughter / rebar3_run

Run a release with one simple command
Other
25 stars 16 forks source link

plugin fails to run if there's at least one pre and one post provider_hook #4

Open marianoguerra opened 9 years ago

marianoguerra commented 9 years ago

to reproduce:

rebar3 new release tst
cd tst
echo '{plugins, [{rebar3_run, {git, "git://github.com/tsloughter/rebar3_run.git", {branch, "master"}}}]}.' >> rebar.config
echo '{provider_hooks, [{pre, [{compile, help}]}, {post, [{compile, help}]} ]}.' >> rebar.config
rebar3 release
rebar3 run
marianoguerra commented 9 years ago

interesting DEBUG output (stripped all the state_t content since it's huge)

===> Uncaught error: undef
===> Stack trace to the error location: [{rebar3_run,do,
                                             [{state_t,
...
},
                                            {rebar_core,do,2,
                                             [{file,
                                               "/home/mariano/soft/rebar3/_build/default/lib/rebar/src/rebar_core.erl"},
                                              {line,124}]},
                                            {rebar3,main,1,
                                             [{file,
                                               "/home/mariano/soft/rebar3/_build/default/lib/rebar/src/rebar3.erl"},
                                              {line,55}]},
                                            {escript,run,2,
                                             [{file,"escript.erl"},
                                              {line,757}]},
                                            {escript,start,1,
                                             [{file,"escript.erl"},
                                              {line,277}]},
                                            {init,start_it,1,[]},
                                            {init,start_em,1,[]}]