drewolson / scrivener

Pagination for the Elixir ecosystem

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compilation warnings on Elixir 1.11

crbelaus opened this issue · comments

Compiling scrivener on Elixir 1.11 throws the following warning:

==> scrivener
Compiling 4 files (.ex)
warning: Scrivener.Paginater.Atom.__impl__/1 defined in application :scrivener_ecto is used by the current application but the current application does not directly depend on :scrivener_ecto. To fix this, you must do one of:

  1. If :scrivener_ecto is part of Erlang/Elixir, you must include it under :extra_applications inside "def application" in your mix.exs

  2. If :scrivener_ecto 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 :scrivener_ecto, you may optionally skip this warning by adding [xref: [exclude: Scrivener.Paginater.Atom]] to your "def project" in mix.exs

  lib/scrivener/paginater.ex:1: Scrivener.Paginater.impl_for/1

Generated scrivener app

I can't reproduce this locally. With no existing _build dir, with tag 2.7.0 checked out, here's my output:

$ mix compile
...
==> scrivener
Compiling 4 files (.ex)
Generated scrivener app

Here's my elixir version:

$ elixir --version
Erlang/OTP 23 [erts-11.1.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe]

Elixir 1.11.1 (compiled with Erlang/OTP 23)