I'm trying to run phoenix server from the command line with iex -S mix phx.server
but I keep getting warnings on compilation about unused variables.
Compilation failed due to warnings while using the --warnings-as-errors option
I don't care about these warnings as i am in the middle of development and these vars will eventually be used or tossed out. I have tried passing -h
and other sensible options, but none of them work and I can't find anything in the docs about how to get phx.server
to pass or override options to the compiler.
I've seen these docs and they haven't helped
I have tried passing the --no-compile
option but this is a no-go since it leaves me unable to recompile during development. I am currently using IO.inspect
to call the vars and this seems to be "good enough" for me to pass the unused vars check, but I would rather be able to disable this flag in the compiler rather than littering my code with IO.inspect