2017-10-24 2 views
0

私はフェニックスプロジェクトの下mix.exsファイルにdialyxirを持っている:ローカルで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 

しかし、私は同じ結果を得ました。どうしたの?

https://github.com/jeremyjh/dialyxir

+2

あなたはいくつかのファイルprobsを持っているようです: '' '_build/.mix/dialyxir_erlang-19.3.pltは書き込み可能ではありません' ''ファイルは書き込み可能ではありません。このディレクトリのファイルに触れ、 ? – Pfitz

+0

@Pfitzはい、そうです。 '_build/.mix'というパスを作成した後、動作します!ありがとうございました! – online

答えて

3

あなたには、いくつかのファイルちゃったごめんなさいを持っているようだ:_build/.mix/dialyxir_erlang-19.3.pltは、ファイルを書き込み可能でないあなたは、このディレクトリ内のファイルをタッチすると、それを修正するために、手動でテストwriteable.Canではないでしょうか?

+0

はい。私は新しいパス '_build/.mix'を作りました。その後、それは動作します。 – online

関連する問題