phoenixframework / phoenix_live_dashboard

Realtime dashboard with metrics, request logging, plus storage, OS and VM insights

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unclear error message for `mix format`

moogle19 opened this issue · comments

commented

Environment

Make sure you are using the latest LiveView and Dashboard versions before continuing.

  • Elixir version (elixir -v): 1.14.1
  • Phoenix version (mix deps): none
  • Phoenix LiveView version (mix deps): 0.18.0
  • Phoenix Dashboard version (mix deps): master
  • Operating system: macOS

Actual behavior

mix format fails with: ** (Mix) Unknown dependency :phoenix given to :import_deps in the formatter configuration. The dependency is not listed in your mix.exs for environment :dev

Expected behavior

mix format should format the code.

commented

Forgot to run mix deps.get, but with an explicit dependency the error message (** (Mix) Unavailable dependency :phoenix given to :import_deps in the formatter configuration. The dependency cannot be found in the file system, please run "mix deps.get" and try again) is a bit clearer.

Not sure if this is an issue or not.

I will improve the error message on Elixir side, thank you!