我在phoenix项目下的mix.exs文件中有dialyxir
:
{:dialyxir, "~> 0.5", only: [:dev, :test], runtime: false}
但是当在项目路径下运行mix dialyzer
时,出现此错误:
$ mix dialyzer
Checking PLT...
[:asn1, :certifi, :compiler, :connection, :cowboy, :cowlib, :crypto,
:db_connection, :decimal, :eex, :elixir, :ex_json_schema, :eye_drops,
:fastglobal, :forge, :fs, :gettext, :hackney, :httpoison, :idna, :kernel,
:logger, :logger_file_backend, :mariaex, :metrics, :mime, :mimerl, :mnemonics,
:parse_trans, :phoenix, :phoenix_html, :phoenix_pubsub, :plug, :poison,
:pqueue, :pqueue2, :public_key, :ranch, :relax_yaml, :runtime_tools, :sentry,
:ssl, :ssl_verify_fun, :stdlib, :stream_gzip, :syntax_tools,
:unicode_util_compat, :uuid, :yamerl]
Finding suitable PLTs
Looking up modules in dialyxir_erlang-19.3_elixir-1.5.1_deps-dev.plt
Looking up modules in dialyxir_erlang-19.3_elixir-1.5.1.plt
Looking up modules in dialyxir_erlang-19.3.plt
Finding applications for dialyxir_erlang-19.3.plt
Finding modules for dialyxir_erlang-19.3.plt
Creating dialyxir_erlang-19.3.plt
:dialyzer.run error: The PLT file _build/.mix/dialyxir_erlang-19.3.plt is not writable
Looking up modules in dialyxir_erlang-19.3.plt
** (Mix) Could not open _build/.mix/dialyxir_erlang-19.3.plt: no such file or directory
我还尝试在官方网站后重新安装它:
mix do deps.get, deps.compile
但是,我得到了同样的结果。有什么问题?
答案 0 :(得分:3)
似乎你有一些文件probs:_build / .mix / dialyxir_erlang-19.3.plt不可写文件不可写。你可以手动测试来触摸这个目录中的文件并进行修改吗?