script

script

Dialyxir warning about unknown functions

I added dialyxir in my umbrella application root .its rc version

          {:dialyxir, "~> 1.0.0-rc.4", only: [:dev], runtime: false}

And in my project list i added plt like this:

      dialyzer: [plt_add_deps: :transitive]

When I run mix dialyzer . It gives me lots and lots of warnings about unknown functions and plugs and other stuff:

        Starting Dialyzer
          [
           check_plt: false,
            init_plt: '/Volumes/Data/Work/haitracker-be/_build/dev/dialyxir_erlang-21.0.3_elixir-1.7.4_deps- 
           dev.plt',
          files_rec: ['/Volumes/Data/Work/haitracker-be/_build/dev/lib/api/ebin',
         '/Volumes/Data/Work/haitracker-be/_build/dev/lib/admin_api/ebin',
          '/Volumes/Data/Work/haitracker-be/_build/dev/lib/core/ebin',
        '/Volumes/Data/Work/haitracker-be/_build/dev/lib/utils/ebin',
        '/Volumes/Data/Work/haitracker-be/_build/dev/lib/data/ebin',
       '/Volumes/Data/Work/haitracker-be/apps/fat_ecto/_build/dev/lib/fat_ecto/ebin'],
       warnings: [:unknown]
      ]
    Total errors: 552, Skipped: 0, Unnecessary Skips: 0
      done in 0m10.83s
     :0:unknown_function
     Function Access.get/3 does not exist.
      ________________________________________________________________________________
     :0:unknown_function
     Function Agent.get/2 does not exist.
      ________________________________________________________________________________
     :0:unknown_function
     Function Agent.start_link/2 does not exist.
      ________________________________________________________________________________
     :0:unknown_function
     Function Agent.stop/1 does not exist.
     ________________________________________________________________________________
    :0:unknown_function
     Function Application.ensure_all_started/1 does not exist.
     ________________________________________________________________________________
    :0:unknown_function
     Function Application.fetch_env!/2 does not exist.
     ________________________________________________________________________________
    :0:unknown_function
    Function Application.get_env/2 does not exist.
    ________________________________________________________________________________
    :0:unknown_function
    `Preformatted text`Function Application.get_env/3 does not exist.
    ________________________________________________________________________________
    :0:unknown_function
    Function Application.spec/1 does not exist.
    ________________________________________________________________________________
    :0:unknown_function
    Function ArgumentError.exception/1 does not exist.
    ________________________________________
    :0:unknown_function
    Function Ecto.assoc/2 does not exist.
    ________________________________________________________________________________

   apps/admin_api/lib/controllers/room_admin_controller.ex:1:callback_info_missing
   Callback info about the Plug behaviour is not available.
   ________________________________________________________________________________
   apps/admin_api/lib/controllers/room_unit_admin_controller.ex:1:callback_info_missing
   Callback info about the Plug behaviour is not available.
  ________________________________________________________________________________
   apps/admin_api/lib/controllers/unit_admin_controller.ex:1:callback_info_missing
   Callback info about the Plug behaviour is not available.
  ________________________________________________________________________________
   apps/admin_api/lib/controllers/user_admin_controller.ex:1:callback_info_missing
   Callback info about the Plug behaviour is not available.
 ________________________________________________________________________________
   apps/admin_api/lib/gettext.ex:1:callback_info_missing
   Callback info about the Gettext.Backend behaviour is not available.
________________________________________________________________________________

These are the few from the complete log.

There are errors about callback missing. What does it expect for a callback?

I tried changing dialyzer: [plt_add_deps: :project]. But nothing seems to be working.

Any helps suggestions will be much appreciated.

Thanks

Most Liked

jeremyjh

jeremyjh

This is a known issue, the ASDF builds for 1.7 are done with OTP 20 by default, you are using 21. So you need to specify in the asdf command line or your .tool-versions elixir 1.7.4-otp-21

NobbZ

NobbZ

This looks as if you were using a pretty recent erlang but a prebuilt elixir. Please use a prebuilt elixir that matches your erlang version asdf install elixir 1.7.x-otp-2y IIRC, of course you have to replace x and y with the proper values…

The reason for this problems is a change of how dialyzer stored its meta data in the BEAM file since OTP 20. It has been discussed a couple of times in the forum.

Where Next?

Popular in Questions Top

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
qwerescape
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
New
_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
earth10
Hi, I’m just starting to build a side-project with Elixir and Phoenix and doing some basic test with Elixir alone. What strikes me is th...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New

Other popular topics Top

RisingFromAshes
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 52341 488
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
boundedvariable
I am going through the kafka architecture. All the features what the kafka is providing are already in Erlang. I would like hear your opi...
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
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New

We're in Beta

About us Mission Statement