danhper / plug-navigation-history

Elixir plug to keep navigation history
https://hex.pm/packages/navigation_history
MIT License
72 stars 15 forks source link

warning: Plug.Conn.get_session/2 defined in application :plug is used by the current application but the current application does not depend on :plug. #11

Open kianmeng opened 3 years ago

kianmeng commented 3 years ago

Running on:

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

Elixir 1.11.3 (compiled with Erlang/OTP 21)
$ mix compile
Compiling 3 files (.ex)
warning: Plug.Conn.get_session/2 defined in application :plug is used by the current application but the current application does not depend on :plug. To fix this, you must do one of:

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

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

  lib/navigation_history/helpers.ex:13: NavigationHistory.Session.fetch_paths/2

warning: Plug.Conn.put_session/3 defined in application :plug is used by the current application but the current application does not depend on :plug. To fix this, you must do one of:

  1. If :plug is part of Erlang/Elixir, you must include it under :extra_applications inside "def application" in your mix.exs ref: [exclude: [Plug.Conn]]] to your "def project" in mix.exs

  lib/navigation_history/helpers.ex:24: NavigationHistory.Session.save_paths/3

Generated navigation_history app
johannesE commented 2 years ago

Maybe it's because mix.exs has set defp deps do ... as private? This is unusual, no?

yepesasecas commented 2 years ago

hi :) any updates?