【发布时间】:2018-10-05 18:27:59
【问题描述】:
我在我的计算机上使用asdf 安装了elixir 1.7.2,包括elixir 和erlang otp 21。在我的项目混合文件中,我按照dialyzer github 的说明添加了最新的透析器候选版本
{:dialyxir, "~> 1.0.0-rc.3", only: [:dev], runtime: false}
当我运行 mix dialyzer 时,我在创建 plt 时遇到了几个错误:
Could not get Core Erlang code for: /home/sigu/.asdf/installs/elixir/1.7.2/lib/elixir/ebin/elixir_parser.beam
Recompile with +debug_info or analyze starting from source code Could not get Core Erlang code for: /home/sigu/.asdf/installs/elixir/1.7.2/lib/logger/ebin/Elixir.Logger.ErlangHandler.beam
然后一切都会失败并出现错误,包括像 System.get_env/1 这样的 elixir 内置函数
:0:unknown_function
Function System.get_env/1 does not exist.
【问题讨论】: