Skip to content

Instantly share code, notes, and snippets.

@philosodad
Created July 30, 2015 14:44
Show Gist options
  • Save philosodad/697fe4727909ee2c0e2f to your computer and use it in GitHub Desktop.
Save philosodad/697fe4727909ee2c0e2f to your computer and use it in GitHub Desktop.
Phoenix error
== Compilation error on file lib/phoenix/code_reloader.ex ==
** (CompileError) lib/phoenix/code_reloader.ex:61: function full_path/1 undefined
(stdlib) lists.erl:1336: :lists.foreach/2
(stdlib) erl_eval.erl:657: :erl_eval.do_apply/6
could not compile dependency phoenix, mix compile failed. You can recompile this dependency with `mix deps.compile phoenix` or update it with `mix deps.update phoenix`
@PositiveControl
Copy link

I was able to temporarily fix this by removing #{full_path(conn)} from lines 61 and 163 of deps/phoenix/lib/phoenix/code_reloader.ex

It's a hack fix, but it'll get your server up and running.

** Edit **
After a little more research, you can also replace those function calls with #{conn.request_path}. I've tested and it seems to be working fine. Source: http://qiita.com/Kazunori_Sada/items/6d650e33d054a47a9d93 (It's in Japanese)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment