Can’t start Phoenix server or run ANY mix tasks.
$ mix phx.server
** (FunctionClauseError) no function clause matching in IO.chardata_to_string/1
The following arguments were given to IO.chardata_to_string/1:
# 1
DIR
Attempted function clauses (showing 2 out of 2):
def chardata_to_string(string) when is_binary(string)
def chardata_to_string(list) when is_list(list)
(elixir) lib/io.ex:461: IO.chardata_to_string/1
(elixir) lib/path.ex:677: Path.expand_home/1
(elixir) lib/path.ex:183: Path.expand/2
(stdlib) erl_eval.erl:680: :erl_eval.do_apply/6
(stdlib) erl_eval.erl:888: :erl_eval.expr_list/6
(stdlib) erl_eval.erl:240: :erl_eval.expr/5
(stdlib) erl_eval.erl:232: :erl_eval.expr/5
(stdlib) erl_eval.erl:233: :erl_eval.expr/5
I think it’s because I updated from Phoenix v1.4.3 to v1.4.4 and this app is using v1.4.3. That’s the only thing I can think of because it was running just fine before that and I didn’t change anything. I tried to change the Phoenix version in my app to 1.4.4 and then run either mix deps.get
OR mix deps.update
to update the mix.lock; but again, none of the mix tasks will run, same error :).
My other Phoenix app on 1.4.4 runs just fine by the way. If anyone has any ideas please let me know.