Various dependencies showing warnings

I am using elixir 1.17.3 with OTP 27.1

==> tailwind
Compiling 3 files (.ex)
    warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead
    │
 72 │       Logger.warn("""
    │              ~
    │
    └─ (tailwind 0.2.2) lib/tailwind.ex:72:14: Tailwind.start/2

    warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead
    │
 86 │         Logger.warn("""
    │                ~
    │
    └─ (tailwind 0.2.2) lib/tailwind.ex:86:16: Tailwind.start/2

Generated tailwind app

I am using elixir 1.17.3 with OTP 27.1

==> phoenix_live_dashboard
Compiling 36 files (.ex)
    warning: Phoenix.LiveView.push_redirect/2 is deprecated. Use push_navigate/2 instead
    │
 21 │         {:ok, push_redirect(socket, to: to)}
    │               ~
    │
    └─ (phoenix_live_dashboard 0.8.3) lib/phoenix/live_dashboard/pages/metrics_page.ex:21:15: Phoenix.LiveDashboard.MetricsPage.mount/3
    └─ (phoenix_live_dashboard 0.8.3) lib/phoenix/live_dashboard/pages/metrics_page.ex:30:15: Phoenix.LiveDashboard.MetricsPage.mount/3

    warning: Phoenix.LiveView.push_redirect/2 is deprecated. Use push_navigate/2 instead
    │
 41 │     {:ok, push_redirect(socket, to: to)}
    │           ~
    │
    └─ (phoenix_live_dashboard 0.8.3) lib/phoenix/live_dashboard/pages/request_logger_page.ex:41:11: Phoenix.LiveDashboard.RequestLoggerPage.mount/3

     warning: Phoenix.LiveView.push_redirect/2 is deprecated. Use push_navigate/2 instead
     │
 291 │       {:noreply, push_redirect(socket, to: to)}
     │                  ~
     │
     └─ (phoenix_live_dashboard 0.8.3) lib/phoenix/live_dashboard/page_live.ex:291:18: Phoenix.LiveDashboard.PageLive.handle_event/3
     └─ (phoenix_live_dashboard 0.8.3) lib/phoenix/live_dashboard/page_live.ex:369:5: Phoenix.LiveDashboard.PageLive.redirect_to_current_node/1

Generated phoenix_live_dashboard app

I am using Elixir 1.17.3 with OTP 27.1

==> hpax
Compiling 4 files (.ex)
warning: 62..@dynamic_table_start + length - 1 inside guards requires an explicit step, please write 62..@dynamic_table_start + length - 1//1 or 62..@dynamic_table_start + length - 1//-1 instead
  (hpax 0.2.0) lib/hpax/table.ex:160: HPAX.Table.lookup_by_index/2

Generated hpax app

I am using Elixir 1.17.3 with OTP 27.1

Compiling 5 files (.ex)
    warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
    │
 14 │     Enum.with_index('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789./')
    │                     ~
    │
    └─ lib/pbkdf2/base64.ex:14:21

    warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
    │
  6 │   @allowed_chars 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
    │                  ~
    │
    └─ lib/pbkdf2/tools.ex:6:18

Warnings on dependencies are not much of a problem. You can report an issue on their repo or submit a patch.

1 Like

Hey @ariandanim I combined your various posts into a single post since it’s all really the same question. Dependencies are not always updated immediately to remove warnings. You can try to make sure you’re on the latest version of those dependencies to see if newer versions don’t have them. Either way, this is not an issue to worry about.

2 Likes

Thankyou Sir :smiley: