Closed bmitc closed 2 years ago
Tagging @OvermindDL1 since they added the Phoenix.Presence
section here and @jeremyjh since they seem to be the primary author of that Wiki page (I suppose redundant give their status as owner of this repository).
I doubt anything on that page is still accurate, I should probably just remove it. Obviously they've changed some internals in presence since it was created.
Thanks for taking a look @jeremyjh! What was curious to me was that I didn't update Phoenix. I only updated Elixir and Erlang. So maybe some macro shenanigans in Phoenix no longer expose whatever the init/1
function is/was due to a change in Elixir?
I am not overly concerned but was just trying to understand why the version bump on Elixir and Erlang caused this to become a compile error. Getting rid of {:nowarn_function, 'init': 1}
got rid of the compiler error.
Precheck
Environment
Elixir & Erlang/OTP versions (elixir --version): Elixir 1.13.4 and Erlang/OTP 24.3.3
Which version of Dialyxir are you using? (cat mix.lock | grep dialyxir): 0.5.1
Note: As mentioned above, we are in the process of upgrading versions of Elixir and Erlang/OTP and will then follow-up shortly with dependencies. So we will be upgrading Dialyxir, just not right now.
Current behavior
In the
Phoenix Dialyxir Quickstart
Wiki entry, it is mentioned that forPhoenix.Presence
, we should have:After upgrading from Elixir 1.11.4 and Erlang/OTP 23.0.2 to Elixir 1.13.4 and Erlang/OTP 24.3.3, I know receiving a compiler error stating:
This compile error was not generated before the upgrade, and I haven't touched any other dependency.
Expected behavior
I am new to Phoenix, and as far as I can tell,
init/1
is and was not a callback in thePhoenix.Presence
module.I have two questions:
init/1
? a. If not, where should this function be coming from?Thank you!