Dialyzer Issues in Elixir Libraries

The root cause appears to be one line in AnyHttp’s configuration:

elixirc_options: [debug_info: Mix.env() == :dev],

This setting has caused exactly the behavior you observed (“Could not get Core Erlang code for …etc…”) in other projects:

I tested this locally with the chore/broken-dialyzer branch:

  • Running mix dialyzer on the code as-is fails with the previously-discussed errors about missing functions.
  • Commenting out the elixirc_options line in AnyHttp’s mix.exs and rebuilding from scratch (after removing _build and priv/plts) gives a successful result with no errors.
2 Likes