vans163 / rebar3_auto

Rebar3 plugin to auto compile and reload on file change.
Other
55 stars 14 forks source link

Stops working after one file save #23

Closed drasko closed 3 years ago

drasko commented 3 years ago

First time I save a file I have a report like this:

===> This feature is experimental and may be modified or removed at any time.
Verifying dependencies...
Compiling zenith
=SUPERVISOR REPORT==== 17-May-2021::17:41:15.756700 ===
    supervisor: {<0.217.0>,ranch_acceptors_sup}
    errorContext: child_terminated
    reason: killed
    offender: [{pid,<0.218.0>},
               {id,{acceptor,<0.217.0>,1}},
               {mfargs,
                   {ranch_acceptor,start_link,
                       [#Port<0.12>,ranch_tcp,error_logger,<0.216.0>]}},
               {restart_type,permanent},
               {shutdown,brutal_kill},
               {child_type,worker}]

=SUPERVISOR REPORT==== 17-May-2021::17:41:15.756951 ===
    supervisor: {<0.217.0>,ranch_acceptors_sup}
    errorContext: child_terminated
    reason: killed
    offender: [{pid,<0.219.0>},
               {id,{acceptor,<0.217.0>,2}},
               {mfargs,
                   {ranch_acceptor,start_link,
                       [#Port<0.12>,ranch_tcp,error_logger,<0.216.0>]}},
               {restart_type,permanent},
               {shutdown,brutal_kill},
               {child_type,worker}]

=SUPERVISOR REPORT==== 17-May-2021::17:41:15.757097 ===
    supervisor: {<0.217.0>,ranch_acceptors_sup}
    errorContext: shutdown
    reason: reached_max_restart_intensity
    offender: [{pid,<0.219.0>},
               {id,{acceptor,<0.217.0>,2}},
               {mfargs,
                   {ranch_acceptor,start_link,
                       [#Port<0.12>,ranch_tcp,error_logger,<0.216.0>]}},
               {restart_type,permanent},
               {shutdown,brutal_kill},
               {child_type,worker}]

=SUPERVISOR REPORT==== 17-May-2021::17:41:15.757251 ===
    supervisor: {<0.217.0>,ranch_acceptors_sup}
    errorContext: shutdown_error
    reason: killed
    offender: [{pid,<0.227.0>},
               {id,{acceptor,<0.217.0>,10}},
               {mfargs,
                   {ranch_acceptor,start_link,
                       [#Port<0.12>,ranch_tcp,error_logger,<0.216.0>]}},
               {restart_type,permanent},
               {shutdown,brutal_kill},
               {child_type,worker}]

=SUPERVISOR REPORT==== 17-May-2021::17:41:15.757376 ===
    supervisor: {<0.217.0>,ranch_acceptors_sup}
    errorContext: shutdown_error
    reason: killed
    offender: [{pid,<0.226.0>},
               {id,{acceptor,<0.217.0>,9}},
               {mfargs,
                   {ranch_acceptor,start_link,
                       [#Port<0.12>,ranch_tcp,error_logger,<0.216.0>]}},
               {restart_type,permanent},
               {shutdown,brutal_kill},
               {child_type,worker}]

=SUPERVISOR REPORT==== 17-May-2021::17:41:15.757476 ===
    supervisor: {<0.217.0>,ranch_acceptors_sup}
    errorContext: shutdown_error
    reason: killed
    offender: [{pid,<0.225.0>},
               {id,{acceptor,<0.217.0>,8}},
               {mfargs,
                   {ranch_acceptor,start_link,
                       [#Port<0.12>,ranch_tcp,error_logger,<0.216.0>]}},
               {restart_type,permanent},
               {shutdown,brutal_kill},
               {child_type,worker}]

=SUPERVISOR REPORT==== 17-May-2021::17:41:15.757569 ===
    supervisor: {<0.217.0>,ranch_acceptors_sup}
    errorContext: shutdown_error
    reason: killed
    offender: [{pid,<0.224.0>},
               {id,{acceptor,<0.217.0>,7}},
               {mfargs,
                   {ranch_acceptor,start_link,
                       [#Port<0.12>,ranch_tcp,error_logger,<0.216.0>]}},
               {restart_type,permanent},
               {shutdown,brutal_kill},
               {child_type,worker}]

=SUPERVISOR REPORT==== 17-May-2021::17:41:15.757655 ===
    supervisor: {<0.217.0>,ranch_acceptors_sup}
    errorContext: shutdown_error
    reason: killed
    offender: [{pid,<0.223.0>},
               {id,{acceptor,<0.217.0>,6}},
               {mfargs,
                   {ranch_acceptor,start_link,
                       [#Port<0.12>,ranch_tcp,error_logger,<0.216.0>]}},
               {restart_type,permanent},
               {shutdown,brutal_kill},
               {child_type,worker}]

=SUPERVISOR REPORT==== 17-May-2021::17:41:15.757744 ===
    supervisor: {<0.217.0>,ranch_acceptors_sup}
    errorContext: shutdown_error
    reason: killed
    offender: [{pid,<0.222.0>},
               {id,{acceptor,<0.217.0>,5}},
               {mfargs,
                   {ranch_acceptor,start_link,
                       [#Port<0.12>,ranch_tcp,error_logger,<0.216.0>]}},
               {restart_type,permanent},
               {shutdown,brutal_kill},
               {child_type,worker}]

=SUPERVISOR REPORT==== 17-May-2021::17:41:15.757819 ===
    supervisor: {<0.217.0>,ranch_acceptors_sup}
    errorContext: shutdown_error
    reason: killed
    offender: [{pid,<0.221.0>},
               {id,{acceptor,<0.217.0>,4}},
               {mfargs,
                   {ranch_acceptor,start_link,
                       [#Port<0.12>,ranch_tcp,error_logger,<0.216.0>]}},
               {restart_type,permanent},
               {shutdown,brutal_kill},
               {child_type,worker}]

=SUPERVISOR REPORT==== 17-May-2021::17:41:15.757979 ===
    supervisor: {<0.217.0>,ranch_acceptors_sup}
    errorContext: shutdown_error
    reason: killed
    offender: [{pid,<0.220.0>},
               {id,{acceptor,<0.217.0>,3}},
               {mfargs,
                   {ranch_acceptor,start_link,
                       [#Port<0.12>,ranch_tcp,error_logger,<0.216.0>]}},
               {restart_type,permanent},
               {shutdown,brutal_kill},
               {child_type,worker}]

=SUPERVISOR REPORT==== 17-May-2021::17:41:15.758111 ===
    supervisor: {<0.215.0>,ranch_listener_sup}
    errorContext: child_terminated
    reason: shutdown
    offender: [{pid,<0.217.0>},
               {id,ranch_acceptors_sup},
               {mfargs,
                   {ranch_acceptors_sup,start_link,
                       [zenith_http_listener,ranch_tcp]}},
               {restart_type,permanent},
               {shutdown,infinity},
               {child_type,supervisor}]

=SUPERVISOR REPORT==== 17-May-2021::17:41:15.759746 ===
    supervisor: {<0.215.0>,ranch_listener_sup}
    errorContext: child_terminated
    reason: killed
    offender: [{pid,<0.216.0>},
               {id,ranch_conns_sup},
               {mfargs,
                   {ranch_conns_sup,start_link,
                       [zenith_http_listener,ranch_tcp,cowboy_clear]}},
               {restart_type,permanent},
               {shutdown,infinity},
               {child_type,supervisor}]

=SUPERVISOR REPORT==== 17-May-2021::17:41:15.759873 ===
    supervisor: {<0.215.0>,ranch_listener_sup}
    errorContext: shutdown
    reason: reached_max_restart_intensity
    offender: [{pid,<0.216.0>},
               {id,ranch_conns_sup},
               {mfargs,
                   {ranch_conns_sup,start_link,
                       [zenith_http_listener,ranch_tcp,cowboy_clear]}},
               {restart_type,permanent},
               {shutdown,infinity},
               {child_type,supervisor}]

=SUPERVISOR REPORT==== 17-May-2021::17:41:15.760177 ===
    supervisor: {local,ranch_sup}
    errorContext: child_terminated
    reason: shutdown
    offender: [{pid,<0.215.0>},
               {id,{ranch_listener_sup,zenith_http_listener}},
               {mfargs,
                {ranch_listener_sup,start_link,
                 [zenith_http_listener,ranch_tcp,
                  #{connection_type => supervisor,
                    socket_opts => [{ip,{0,0,0,0}},{port,8089}]},
                  cowboy_clear,
                  #{connection_type => supervisor,
                    env =>
                     #{dispatch =>
                        [{'_',[],
                          [{[<<"status">>],[],zenith_status,[]},
                           {[<<"users">>],[],zenith_users,[]},
                           {[<<"login">>],[],zenith_login,[]}]}]}}]}},
               {restart_type,permanent},
               {shutdown,infinity},
               {child_type,supervisor}]

=ERROR REPORT==== 17-May-2021::17:41:15.819961 ===
Error in process <0.185.0> with exit value:
{undef,[{rebar3_auto,auto,
                     [[<<".erl">>,<<".hrl">>,<<".src">>,<<".lfe">>,
                       <<".config">>,<<".lock">>,<<".c">>,<<".cpp">>,<<".h">>,
                       <<".hpp">>,<<".cc">>]],
                     []}]}

After that system is not responding anymore on any file change.

drasko commented 3 years ago

Ah, actually I read too fast - it should be added to ~/.config/rebar3/rebar.config. Works now. Thinks, closing the issue.