I am starting a brand-new Phoenix project, and I am trying to get a clean output from dialyzer. I am using dialyxir. I am using Erlang 18.3.4, Elixir 1.3.4, and Phoenix 1.2.1.
The output so far is relatively clean, though I do get the following two warnings:
index.html.eex:1: The pattern {'safe', _@2} can never match the type binary()
Unknown functions:
'Elixir.Phoenix.LiveReloader':call/2
done in 0m1.67s
done (warnings were emitted)
Is there anything I can do to clean-up this output? Again, I have done nothing more than ran mix phoenix.new hello_world, fetching dependencies, and adding dialyxir to the application.
P.S. Not completely relevant here, but the reason I am a bit obsessive about getting clean output is that I started a toy project w/o dialyxir (didn’t know about it at the time), and now I need to turn it into a professional project.
@nicholasjhenry Thanks for the reply. I was aware of that particular QuickStart guide, but wanted to avoid adding code unless it was necessary, but frankly I’ve played around with this too much already, and it helps to be reminded about what the author of the lib suggest.