5HT / fs

📁 FS: Windows, Linux, Mac Driver
https://fs.n2o.dev
Other
234 stars 69 forks source link

this is broken as a dropin for enotify #71

Closed vans163 closed 6 months ago

vans163 commented 6 months ago
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 commented 6 months ago

I think something changed in rebar3

vans163 commented 6 months ago

Stepped on my own rake. https://github.com/erlang/rebar3/issues/2855