Dialyzer not compiling correctly

This is the result of asdf current:

elixir         1.7.3   (set by /home/fl4m3/.tool-versions)
erlang         21.1    (set by /home/fl4m3/.tool-versions)

Questions:

  1. Could it be because these are not set as global?
  2. Could it be because I no $MIX_HOME env variable set?

Checking the docs on dialyxir I found this:

Running the mix task dialyzer by default builds several PLT files:

  • A core Erlang file in $MIX_HOME/dialyxir_erlang-[OTP Version].plt
  • A core Elixir file in $MIX_HOME/dialyxir_erlang-[OTP Version]_elixir-[Elixir Version].plt
  • A project environment specific file in _build/env/dialyze_erlang-[OTP Version]_elixir-[Elixir Version]_deps-dev.plt