Skip to Main Content
Mastering Elixir
book

Mastering Elixir

by André Albuquerque, Daniel Caixinha
July 2018
Intermediate to advanced content levelIntermediate to advanced
574 pages
14h 7m
English
Packt Publishing
Content preview from Mastering Elixir

Viewing cross references with xref

Since Elixir 1.3, every time you compile your code, you are also using xref to find calls to non-existent modules and functions. If the module we were pointing to in the ElixirDrip application configuration (config/config.exs) had a typo, we would get the following output:

$ mix clean && mix compile==> elixir_dripCompiling 10 files (.ex)warning: function ElixirDrip.Storage.Providers.Typo.upload/2 is undefined (module ElixirDrip.Storage.Providers.Typo is not available) lib/elixir_drip/storage/provider.ex:6warning: function ElixirDrip.Storage.Providers.Typo.download/1 is undefined (module ElixirDrip.Storage.Providers.Typo is not available) lib/elixir_drip/storage/provider.ex:7Generated elixir_drip app==> elixir_drip_web ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Testing Elixir

Testing Elixir

Andrea Leopardi, Jeffrey Matthias

Publisher Resources

ISBN: 9781788472678Supplemental Content