0.5", only: [:dev, :test], runtime: false} 但是当在项目路-6ren">
gpt4 book ai didi

elixir - 如何在本地使用dialyxir?

转载 作者:行者123 更新时间:2023-12-02 20:36:39 27 4
gpt4 key购买 nike

我在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

但是,我得到了相同的结果。有什么问题吗?

https://github.com/jeremyjh/dialyxir

最佳答案

似乎您有一些文件问题:_build/.mix/dialyxir_erlang-19.3.plt 不可写该文件不可写。您可以手动测试触摸此目录中的文件并修改它吗?

关于elixir - 如何在本地使用dialyxir?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46910324/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com