I have a project in which I’ve been using dialyzer. Everything worked fine until today, when, after adding Phoenix to the project, I received this error:
...
Total errors: 2, Skipped: 0, Unnecessary Skips: 0
done in 0m2.27s
lib/phoenix/router.ex:2:no_return
Function call/2 has no local return.
________________________________________________________________________________
lib/phoenix/router.ex:325:pattern_match_cov
The pattern
variable__
can never match, because previous clauses completely cover the type
:error.
________________________________________________________________________________
done (warnings were emitted)
Halting VM with exit status 2
So, I thought that the error was my fault due to add Phoenix after creating the Mix project.
Then I created a new Phoenix project (mix phx.new new_project --no-html --no-webpack) and I added dialyzer to it.
But, without adding anything else, I still receive the same error when running mix dialyzer --format dialyxir.
I’ve searched for this error and some time ago it happened to another dev.
I have a number of things related to phoenix in my dialyxir ignore list. Maybe they will accept PR fixes as it does seem there are some wrong things? ^.^
I’m running into this as well. However, I’m not seeing any PR’s in the Phoenix GitHub repo. @xrodriguez would you mind linking to the PR’s that you saw?