Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this is broken as a dropin for enotify #71

Closed
vans163 opened this issue Jan 6, 2024 · 2 comments
Closed

this is broken as a dropin for enotify #71

vans163 opened this issue Jan 6, 2024 · 2 comments

Comments

@vans163
Copy link

vans163 commented Jan 6, 2024

Running hooks for app_compile in app rebar3_auto (/home/user/project/rebar3_auto) with configuration:
        {pre_hooks, []}.
Running hooks for app_compile in app rebar3_auto (/home/user/project/rebar3_auto) with configuration:
        {post_hooks, []}.
Running hooks for compile in app rebar3_auto (/home/user/project/rebar3_auto) with configuration:
        {post_hooks, []}.
Running hooks for compile with configuration:
        {post_hooks, []}.
=ERROR REPORT==== 6-Jan-2024::09:51:39.583372 ===
** Generic server fs_watcher_srcsup terminating 
** Last message in was {'EXIT',<0.270.0>,killed}
** When Server state == {state,
                         {local,fs_watcher_srcsup},
                         one_for_one,
                         {[gen_event,fs_server],
                          #{fs_server =>
                             {child,<0.273.0>,fs_server,
                              {fs_server,start_link,
                               [fs_watcher_srcfile,fs_watcher_src,inotifywait,
                                "/home/user/project/rebar3_auto/src",
                                "/home/user/project/rebar3_auto/src"]},
                              permanent,false,5000,worker,
                              [fs_server]},
                            gen_event =>
                             {child,<0.274.0>,gen_event,
                              {gen_event,start_link,[{local,fs_watcher_src}]},
                              permanent,false,5000,worker,
                              [gen_event]}}},
                         undefined,5,10,[],0,never,fs_sup,
                         [fs_watcher_src,fs_watcher_srcfile,
                          "/home/user/project/rebar3_auto/src"]}
** Reason for termination ==
** killed

=CRASH REPORT==== 6-Jan-2024::09:51:39.583545 ===
  crasher:
    initial call: supervisor:fs_sup/1
    pid: <0.271.0>
    registered_name: fs_watcher_srcsup
    exception exit: killed
      in function  gen_server:decode_msg/9 (gen_server.erl, line 909)
    ancestors: [<0.270.0>]
    message_queue_len: 0
    messages: []
    links: []
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 376
    stack_size: 28
    reductions: 11499
  neighbours:

I think the supervisor tree is not playing nice with the way rebar3 does plugins. After rebar3 finishes recompiling for some reason the sup tree gets an exit signal sent to it or killed.

@vans163
Copy link
Author

vans163 commented Jan 6, 2024

I think something changed in rebar3

@vans163
Copy link
Author

vans163 commented Jan 6, 2024

Stepped on my own rake. erlang/rebar3#2855

@vans163 vans163 closed this as completed Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant