phoenix_guardian
phoenix_guardian copied to clipboard
Compilation error on file web/router.ex
Hi, I've got a error when try to install phoenix_guardian
** (CompileError) web/router.ex: internal error in v3_core; crash reason: {case_clause, {'EXIT', {badarg, [{erl_anno,anno_info,[-1],[{file,"erl_anno.erl"},{line,360}]}, {v3_core,record_anno,2,[{file,"v3_core.erl"},{line,2410}]}, {v3_core,expr,2,[{file,"v3_core.erl"},{line,539}]}, {v3_core,safe,2,[{file,"v3_core.erl"},{line,1593}]}, {v3_core,expr,2,[{file,"v3_core.erl"},{line,528}]}, {v3_core,safe,2,[{file,"v3_core.erl"},{line,1593}]}, {v3_core,'-safe_list/2-anonymous-0-',2, [{file,"v3_core.erl"},{line,1608}]}, {lists,foldr,3,[{file,"lists.erl"},{line,1276}]}, {v3_core,expr,2,[{file,"v3_core.erl"},{line,538}]}, {v3_core,safe,2,[{file,"v3_core.erl"},{line,1593}]}, {v3_core,'-safe_list/2-anonymous-0-',2, [{file,"v3_core.erl"},{line,1608}]}, {lists,foldr,3,[{file,"lists.erl"},{line,1276}]}, {v3_core,expr,2,[{file,"v3_core.erl"},{line,538}]}, {v3_core,safe,2,[{file,"v3_core.erl"},{line,1593}]}, {v3_core,expr,2,[{file,"v3_core.erl"},{line,528}]}, {v3_core,safe,2,[{file,"v3_core.erl"},{line,1593}]}, {v3_core,'-safe_list/2-anonymous-0-',2, [{file,"v3_core.erl"},{line,1608}]}, {lists,foldr,3,[{file,"lists.erl"},{line,1276}]}, {v3_core,expr,2,[{file,"v3_core.erl"},{line,652}]}, {v3_core,exprs,2,[{file,"v3_core.erl"},{line,512}]}]}}}
in function compile:'-select_passes/2-anonymous-2-'/2 (compile.erl, line 530) in call from compile:'-internal_comp/4-anonymous-1-'/2 (compile.erl, line 315) in call from compile:fold_comp/3 (compile.erl, line 341) in call from compile:internal_comp/4 (compile.erl, line 325) in call from compile:'-do_compile/2-anonymous-0-'/2 (compile.erl, line 175) (stdlib) lists.erl:1338: :lists.foreach/2 (phoenix) expanding macro: Phoenix.Router.before_compile/1 web/router.ex:1: PhoenixGuardian.Router (module) (elixir) lib/kernel/parallel_compiler.ex:116: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/1
Any Ideas?
I have the issue. Here are the versions of erlang and elixir
$ iex -v
Erlang/OTP 19 [erts-8.0.2] [source-9503fff] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]
IEx 1.3.2
My version $ iex -v Erlang/OTP 19 [erts-8.0.2] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]
IEx 1.3.2
OK, I managed to compile the code.
You have to mix deps.update --all
to use phoenix 1.1.6 which is the only 1.1.x release with erlang 19 support.
Also you should have change to {:phoenix_html, "~> 2.6.0"}
in mix.exs
Ok, thank you a lot.
I'm trying to get the code as released to work properly, without modifying versions. After getting past the above by downgrading some of the requirements, I'm now running into a node / v8 error.
Could you perhaps list the versions of elixir, erlang, and node that were used to create this example on the README? And then set the exact versions of deps rather than "~>" so newer, breaking, ones don't get loaded. I think having that would make it easier on folks and turns it into a "snapshot" in time. Since it's unlikely you'll have time to continually update this example.
(Or if you happen to use asdf, maybe add the versions as a .tool-versions file.)