bigardone / phoenix-trello

Trello tribute done in Elixir, Phoenix Framework, React and Redux.
https://phoenix-trello.herokuapp.com
MIT License
2.5k stars 408 forks source link

Compilation error #17

Closed everhusk closed 8 years ago

everhusk commented 8 years ago

Keep getting this error when running locally (Phoenix v1.1.2):

== Compilation error on file lib/phoenix_trello/guardian_serializer.ex ==
** (SyntaxError) lib/phoenix_trello/guardian_serializer.ex:4: syntax error before: '{'
    (elixir) lib/kernel/parallel_compiler.ex:100: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/8
everhusk commented 8 years ago

If

alias PhoenixTrello.{Repo,User}

is split up into

alias PhoenixTrello.Repo alias PhoenixTrello.User

then it works

wuming123057 commented 8 years ago

From Elixir v1.2 it is possible to alias, import or require multiple modules at once. So your Elixir version must be 1.2 or more. Refer to Multi alias/import/require/use

bigardone commented 8 years ago

Yeah, you're totally right. The project is assuming that you have Elixir 1.2 installed. I'll add it in the readme file :) Thanks!