Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you get the elixir compiler to show warnings when running a phoenix server?

Running a phoenix server in iex session via mix, like:

iex -S mix phx.server

Will sometimes give a list of warnings like:

Compiling 1 file (.ex)
warning: variable "user" is unused
  lib/app_web/controllers/user_controller.ex:37

But seemingly only the first time the server is run, after which I suppose its cached and so it doesn't show up. How can I at a later time see these warnings to fix them? Thanks.

like image 921
Laser Avatar asked Sep 17 '18 03:09

Laser


1 Answers

Run mix compile --force to see all warnings again.

like image 87
denis.peplin Avatar answered Sep 21 '22 20:09

denis.peplin