phoenix-skeleton icon indicating copy to clipboard operation
phoenix-skeleton copied to clipboard

Compilation Error in auth_controller.ex

Open berndbobrich opened this issue 8 years ago • 2 comments

Hi,

I get the following compilation error when following the described steps in the README:

(running mix deps.get and mix.compile)

== Compilation error on file web/controllers/auth_controller.ex ==
** (UndefinedFunctionError) undefined function Skeleton.Endpoint.path/1 (module Skeleton.Endpoint is not available)
    Skeleton.Endpoint.path("/auth")
    web/controllers/auth_controller.ex:5: (module)
    (stdlib) erl_eval.erl:670: :erl_eval.do_apply/6
    (elixir) lib/kernel/parallel_compiler.ex:100: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/8

When I run compile again, the first error is this:

== Compilation error on file lib/skeleton/endpoint.ex ==
** (UndefinedFunctionError) undefined function Plug.Session.MEMCACHED.init/1 (module Plug.Session.MEMCACHED is not available)
    Plug.Session.MEMCACHED.init([signing_salt: "SBRvpcSC", table: :memcached_sessions, encryption_salt: "Challala"])
    (plug) lib/plug/session.ex:48: Plug.Session.init/1
    (plug) lib/plug/builder.ex:198: Plug.Builder.init_module_plug/3
    (plug) lib/plug/builder.ex:186: anonymous fn/4 in Plug.Builder.compile/3
    (elixir) lib/enum.ex:1473: Enum."-reduce/3-lists^foldl/2-0-"/3
    (plug) lib/plug/builder.ex:186: Plug.Builder.compile/3
    (phoenix) expanding macro: Phoenix.Endpoint.__before_compile__/1
    lib/skeleton/endpoint.ex:1: Skeleton.Endpoint (module)
    (elixir) lib/kernel/parallel_compiler.ex:100: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/8

Since I am new to elixir/phoenix this might as well originate in a misconfiguration. Maybe you have an idea ...

Cheers!

berndbobrich avatar Jul 06 '16 07:07 berndbobrich

Hi @berndbobrich ,

thanks for the bug report. Looks like I didn't update the memcached_session dependency to the most recent version. I assume you're on a mac as this is due to an HFS+ issue (case insensitivity)?

Best regards, Martin

gutschilla avatar Jul 07 '16 10:07 gutschilla

Hi,

you are right, I am on a Mac.

Meanwhile I kind of solved this by replacing the Session-Storage with a cookie storage. Nevertheless it would be great to see the memcached variant working :)

Cheers, Jan

berndbobrich avatar Jul 07 '16 10:07 berndbobrich