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
Function call/2 has no local return.
can never match, because previous clauses completely cover the type
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.