我不确定您的其他设置是什么,但正如我前面提到的,它对我来说适用于以下各项:
$ mix dialyzer
Finding suitable PLTs
Checking PLT...
[:asn1, :bamboo, :bcrypt_elixir, :cache_server, :certifi, :compiler, :connection, :core, :cors_plug, :cowboy, :cowlib, :crypto, :database, :db_connection, :decimal, :ecto, :eex, :elixir, :elixir_make, :gettext, :hackney, :idna, :jason, :kernel, :logger, :metrics, :mime, :mimerl, :parse_trans, :phoenix, :phoenix_html, :phoenix_pubsub, :plug, :poison, :poolboy, :postgrex, :public_key, :ranch, :runtime_tools, :ssl, :ssl_verify_fun, :stdlib, :unicode_util_compat]
PLT is up to date!
Starting Dialyzer
[
check_plt: false,
init_plt: '/______/code/aetherwars_umbrella/_build/dev/dialyxir_erlang-21.0_elixir-1.7.2_deps-dev.plt',
files_rec: ['/______/code/aetherwars_umbrella/_build/dev/lib/web/ebin',
'/______/code/aetherwars_umbrella/_build/dev/lib/cache_server/ebin',
'/______/code/aetherwars_umbrella/_build/dev/lib/database/ebin',
'/______/code/aetherwars_umbrella/_build/dev/lib/core/ebin'],
warnings: [:unknown]
]
Total errors: 70, Skipped: 0
done in 2m2.05s
雨伞组合.exs:
# ...
def project do
[
apps_path: "apps",
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: [plt_add_deps: :transitive],
aliases: aliases()
]
end
#....
defp deps do
[
{:dialyxir, "~> 1.0.0-rc.3", only: [:dev], runtime: false},
{:benchee, "~> 0.11", only: :dev}
]
end