Yes, add it as a dependency (only: :dev). Then run mix dialyzer.
If you see errors in your editor, always try to reproduce them on the terminal as well. Sometimes editors get a somewhat weird view on your project that is not in a consistent state.
Also, is this an umbrella? I think I remember there have been problems in umbrellas with some features of the LS.
yes it is, I installed it in my main mix.exs file and ran mix dialyzer
it shows me errors
lib/phoenix/router.ex:2:no_return
Function call/2 has no local return.
________________________________________________________________________________
lib/phoenix/router.ex:2:no_return
Function call/2 has no local return.
________________________________________________________________________________
lib/phoenix/router.ex:331:pattern_match_cov
The pattern
variable_
can never match, because previous clauses completely cover the type
:error.
________________________________________________________________________________
lib/phoenix/router.ex:331: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
That file has no error but my router lib file has errors
I searched this error, and they suggested to skip this error