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

:single_one_for_one deprecation

Open gemantzu opened this issue 4 years ago • 7 comments

Here is the message:

warning: :simple_one_for_one strategy is deprecated, please use DynamicSupervisor instead
  (elixir 1.10.2) lib/supervisor.ex:604: Supervisor.init/2
  (elixir 1.10.2) lib/supervisor.ex:556: Supervisor.start_link/2
  (kernel 6.4.1) application_master.erl:277: :application_master.start_it_old/4

Erlang / Elixir versions:

Erlang/OTP 22 [erts-10.4.3] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [hipe]

IEx 1.10.2 (compiled with Erlang/OTP 22)

gemantzu avatar Apr 30 '20 15:04 gemantzu

This is the most frustrating error. It's happening all over the place but there isn't a set solution AFAIK. I've seen many questions about this online

doomspork avatar Apr 30 '20 16:04 doomspork

hi guys I think this one might help regarding the warning https://hexdocs.pm/elixir/DynamicSupervisor.html

pau-riosa avatar Apr 30 '20 16:04 pau-riosa

Thanks @pau-riosa ! You are welcome to push a PR if you want :)

gemantzu avatar Apr 30 '20 20:04 gemantzu

wow really thanks! I'll try!

pau-riosa avatar May 01 '20 04:05 pau-riosa

I think this is not an issue anymore. can we close it @gemantzu ?

taj avatar May 25 '20 17:05 taj

@tajchumber really? Did something change on erlang / elixir which fixed it or what? I am sorry, I was away for a few days.

gemantzu avatar May 26 '20 08:05 gemantzu

I think it might be after updating to elixir 1.10? I actually didn't notice when it stopped happening haah

taj avatar May 26 '20 11:05 taj