kerryb

kerryb

Dialyzer/dialyxir suddenly failing

Hi,

I have an umbrella project containing two applications (one Phoenix, one plain Elixir), with dialyxir configured in the umbrella. It all worked fine until recently, when suddenly mix dialyzer started failing (see below for output). My problem is I can’t work out what changed to cause the failures – I’ve reverted to a version where I’m certain it used to work, and still get the same errors, so I assume it’s something external to the project. I’ve also tried removing the _build directory, and even ~/.mix, and in increasing desperation even reinstalling elixir and erlang, but nothing has helped so far.

I’m hoping someone can at least point me in the right direction to start looking for a solution, as I’m completely stumped (I’m a relative newcomer to the platform).

I’m using Elixir 1.4.0 on Erlang 19, and dialyxir 0.5.0, running on Mac OS 10.12.4. Here’s the output I get:

mix dialyzer --halt-exit-status
Checking PLT...
[:asn1, :certifi, :combine, :compiler, :cowboy, :cowlib, :crypto, :eex, :elixir,
 :fs, :gettext, :hackney, :httpoison, :idna, :kernel, :logger, :metrics, :mime,
 :mimerl, :oauth2, :phoenix, :phoenix_html, :phoenix_live_reload,
 :phoenix_pubsub, :phoenix_slime, :plug, :poison, :public_key, :ranch, :slime,
 :ssl, :ssl_verify_fun, :stdlib, :strava, :timex, :tzdata, :ytd_core]
PLT is up to date!
Starting Dialyzer
dialyzer args: [check_plt: false,
 init_plt: '/Users/kerry/dev/ytd/_build/dev/dialyxir_erlang-19.3_elixir-1.4.0_deps-dev.plt',
 files_rec: ['/Users/kerry/dev/ytd/_build/dev/lib/ytd_web/ebin',
  '/Users/kerry/dev/ytd/_build/dev/lib/ytd_core/ebin'], warnings: [:unknown]]
done in 0m2.15s
:0: Unknown function 'Elixir.Gettext':dgettext/4
:0: Unknown function 'Elixir.Gettext':dngettext/6
:0: Unknown function 'Elixir.Gettext.Compiler':expand_to_binary/4
:0: Unknown function 'Elixir.Gettext.Compiler':warn_if_domain_contains_slashes/1
:0: Unknown function 'Elixir.Gettext.Extractor':extract/4
:0: Unknown function 'Elixir.Gettext.Extractor':'extracting?'/0
:0: Unknown function 'Elixir.Gettext.Interpolation':interpolate/2
:0: Unknown function 'Elixir.Gettext.Interpolation':to_interpolatable/1
:0: Unknown function 'Elixir.Logger':bare_log/3
:0: Unknown function 'Elixir.Phoenix.Channel.Server':broadcast/4
:0: Unknown function 'Elixir.Phoenix.Channel.Server':'broadcast!'/4
:0: Unknown function 'Elixir.Phoenix.Channel.Server':broadcast_from/5
:0: Unknown function 'Elixir.Phoenix.Channel.Server':'broadcast_from!'/5
:0: Unknown function 'Elixir.Phoenix.CodeReloader':call/2
:0: Unknown function 'Elixir.Phoenix.CodeReloader':'reload!'/1
:0: Unknown function 'Elixir.Phoenix.Config':cache/3
:0: Unknown function 'Elixir.Phoenix.Controller':accepts/2
:0: Unknown function 'Elixir.Phoenix.Controller':fetch_flash/2
:0: Unknown function 'Elixir.Phoenix.Controller':protect_from_forgery/2
:0: Unknown function 'Elixir.Phoenix.Controller':put_new_layout/2
:0: Unknown function 'Elixir.Phoenix.Controller':put_new_view/2
:0: Unknown function 'Elixir.Phoenix.Controller':put_secure_browser_headers/2
:0: Unknown function 'Elixir.Phoenix.Controller':redirect/2
:0: Unknown function 'Elixir.Phoenix.Controller':render/2
:0: Unknown function 'Elixir.Phoenix.Controller.Pipeline':'__catch__'/5
:0: Unknown function 'Elixir.Phoenix.Endpoint.Adapter':config_change/3
:0: Unknown function 'Elixir.Phoenix.Endpoint.Adapter':start_link/2
:0: Unknown function 'Elixir.Phoenix.Endpoint.Adapter':static_path/2
:0: Unknown function 'Elixir.Phoenix.Endpoint.Adapter':static_url/1
:0: Unknown function 'Elixir.Phoenix.Endpoint.Adapter':struct_url/1
:0: Unknown function 'Elixir.Phoenix.Endpoint.Adapter':url/1
:0: Unknown function 'Elixir.Phoenix.Endpoint.Instrument':extract_endpoint/1
:0: Unknown function 'Elixir.Phoenix.Endpoint.Instrument':strip_caller/1
:0: Unknown function 'Elixir.Phoenix.Endpoint.RenderErrors':'__catch__'/4
:0: Unknown function 'Elixir.Phoenix.HTML.Engine':fetch_assign/2
:0: Unknown function 'Elixir.Phoenix.HTML.Safe':to_iodata/1
:0: Unknown function 'Elixir.Phoenix.HTML.Tag':content_tag/3
:0: Unknown function 'Elixir.Phoenix.LiveReloader':call/2
:0: Unknown function 'Elixir.Phoenix.Logger':phoenix_channel_join/3
:0: Unknown function 'Elixir.Phoenix.Logger':phoenix_controller_call/3
:0: Unknown function 'Elixir.Phoenix.Param':to_param/1
:0: Unknown function 'Elixir.Phoenix.PubSub':subscribe/3
:0: Unknown function 'Elixir.Phoenix.PubSub':subscribe/4
:0: Unknown function 'Elixir.Phoenix.PubSub':unsubscribe/2
:0: Unknown function 'Elixir.Phoenix.Router':'__bypass__'/3
:0: Unknown function 'Elixir.Phoenix.Router.Helpers':path/3
:0: Unknown function 'Elixir.Phoenix.Router.Helpers':raise_route_error/5
:0: Unknown function 'Elixir.Phoenix.Router.Helpers':url/2
:0: Unknown function 'Elixir.Phoenix.Router.NoRouteError':exception/1
:0: Unknown function 'Elixir.Phoenix.Template':hash/2
:0: Unknown function 'Elixir.Phoenix.Template':raise_template_not_found/3
:0: Unknown function 'Elixir.Phoenix.View':render/3
:0: Unknown function 'Elixir.Plug.Conn':assign/3
:0: Unknown function 'Elixir.Plug.Conn':fetch_session/1
:0: Unknown function 'Elixir.Plug.Conn':fetch_session/2
:0: Unknown function 'Elixir.Plug.Conn':get_session/2
:0: Unknown function 'Elixir.Plug.Conn':put_private/3
:0: Unknown function 'Elixir.Plug.Conn':put_session/3
:0: Unknown function 'Elixir.Plug.Conn.Query':encode/2
:0: Unknown function 'Elixir.Plug.Conn.WrapperError':reraise/3
:0: Unknown function 'Elixir.Plug.Debugger':'__catch__'/4
:0: Unknown function 'Elixir.Plug.HTML':html_escape/1
:0: Unknown function 'Elixir.Plug.Head':call/2
:0: Unknown function 'Elixir.Plug.Logger':call/2
:0: Unknown function 'Elixir.Plug.MethodOverride':call/2
:0: Unknown function 'Elixir.Plug.Parsers':call/2
:0: Unknown function 'Elixir.Plug.RequestId':call/2
:0: Unknown function 'Elixir.Plug.Session':call/2
:0: Unknown function 'Elixir.Plug.Static':call/2
:0: Unknown function 'Elixir.Strava.Athlete':retrieve_current/1
:0: Unknown function 'Elixir.Strava.Athlete':stats/2
:0: Unknown function 'Elixir.Strava.Auth':'authorize_url!'/0
:0: Unknown function 'Elixir.Strava.Auth':'get_token!'/1
:0: Unknown function 'Elixir.Strava.Client':new/1
:0: Unknown function 'Elixir.Timex':day/1
:0: Unknown function 'Elixir.Timex':end_of_week/2
:0: Unknown function 'Elixir.Timex':'is_leap?'/1
lib/phoenix/endpoint.ex:1: Callback info about the 'Elixir.Plug' behaviour is not available
lib/phoenix/router.ex:1: Callback info about the 'Elixir.Plug' behaviour is not available
web/channels/user_socket.ex:1: Callback info about the 'Elixir.Phoenix.Socket' behaviour is not available
web/controllers/auth_controller.ex:1: Callback info about the 'Elixir.Plug' behaviour is not available
web/controllers/index_controller.ex:1: Callback info about the 'Elixir.Plug' behaviour is not available
web/gettext.ex:1: Callback info about the 'Elixir.Gettext.Backend' behaviour is not available
done (warnings were emitted)
make: *** [dialyzer] Error 2

Thanks!

Kerry

First Post!

peerreynders

peerreynders

I’d start by looking at the output of

dialyzer --plt_info

to determine if it is referencing the correct BEAM files for the identified modules.

If it’s linked to the wrong files it’s probably time to rebuild the Persistent Lookup Table (PLT).

I gather mix dialyzer --plt doesn’t do anything?

Where Next?

Popular in Questions Top

lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
mgjohns61585
Could someone help me? I’m making my first elixir program, number guessing game. I can’t figure out how to convert the user’s guess from ...
New
johnnyicon
Hi all, I’ve just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I’m trying to use Postgres...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
itssasanka
Hi all, Trying to get some more clarity over utc_datetime and naive_datetime for Ecto: The documentation above suggests that while ...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New
komlanvi
Hi everyone, I was playing with phoenix liveView but I run into an issue. I have a form and want to validate each input text when the te...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New

Other popular topics Top

axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 48342 226
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 31013 112
New
josevalim
Hi everyone, One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 54120 245
New
vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New

We're in Beta

About us Mission Statement