Hi! I have an app that use a pagination library called scrivener_html. With Elixir 1.11 it trigger a bunch of compilation warnings like this:
warning: Phoenix.Naming.resource_name/1 defined in application :phoenix is used by the current application but the current application does not directly depend on :phoenix. To fix this, you must do one of:
1. If :phoenix is part of Erlang/Elixir, you must include it under :extra_applications inside "def application" in your mix.exs
2. If :phoenix is a dependency, make sure it is listed under "def deps" in your mix.exs
3. In case you don't want to add a requirement to :phoenix, you may optionally skip this warning by adding [xref: [exclude: Phoenix.Naming]] to your "def project" in mix.exs
lib/scrivener/html.ex:178: Scrivener.HTML.name_for/2
warning: Phoenix.HTML.__using__/1 defined in application :phoenix_html is used by the current application but the current application does not directly depend on :phoenix_html. To fix this, you must do one of:
1. If :phoenix_html is part of Erlang/Elixir, you must include it under :extra_applications inside "def application" in your mix.exs
2. If :phoenix_html is a dependency, make sure it is listed under "def deps" in your mix.exs
3. In case you don't want to add a requirement to :phoenix_html, you may optionally skip this warning by adding [xref: [exclude: Phoenix.HTML]] to your "def project" in mix.exs
Found at 2 locations:
lib/scrivener/html.ex:2: Scrivener.HTML
lib/scrivener/html/seo.ex:15: Scrivener.HTML.SEO
[...]
Since that library isn’t maintained anymore, I have a fork of it and I thought I’d just follow instructions from the warnings and add phoenix and phoenix_html in deps
but actually there are already there: https://github.com/weatherforce/scrivener_html/blob/master/mix.exs#L47
So I don’t understand why I’m getting this warning.