elixir-ls icon indicating copy to clipboard operation
elixir-ls copied to clipboard

warning: a Mix listener expected by Phoenix.CodeReloader is missing during debug

Open bfcns opened this issue 7 months ago • 2 comments

Phoenix 1.8.0-rc.3

warning: a Mix listener expected by Phoenix.CodeReloader is missing.

Please add the listener to your mix.exs configuration, like so:

    def project do
      [
        ...,
        listeners: [Phoenix.CodeReloader]
      ]
    end


  (phoenix 1.8.0-rc.3) lib/phoenix/code_reloader/server.ex:76: anonymous fn/5 in Phoenix.CodeReloader.Server.handle_call/3
  (mix 1.18.3) lib/mix/sync/lock.ex:112: Mix.Sync.Lock.with_lock/3
  (phoenix 1.8.0-rc.3) lib/phoenix/code_reloader/server.ex:70: Phoenix.CodeReloader.Server.handle_call/3
  (stdlib 6.2.2) gen_server.erl:2381: :gen_server.try_handle_call/4
  (stdlib 6.2.2) gen_server.erl:2410: :gen_server.handle_msg/6
  (stdlib 6.2.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3

Then debug stops when a file is modified and saved.

bfcns avatar May 20 '25 21:05 bfcns

This may be something new but generally the reloader is not compatible with debug https://github.com/phoenixframework/phoenix_live_reload/issues/133

lukaszsamson avatar May 21 '25 04:05 lukaszsamson

I’ll keep it opened to investigate

lukaszsamson avatar May 22 '25 04:05 lukaszsamson