Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error #17

Closed
everhusk opened this issue Jan 30, 2016 · 3 comments
Closed

Compilation error #17

everhusk opened this issue Jan 30, 2016 · 3 comments

Comments

@everhusk
Copy link

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
Copy link
Author

If

alias PhoenixTrello.{Repo,User}

is split up into

alias PhoenixTrello.Repo alias PhoenixTrello.User

then it works

@wuming123057
Copy link

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
Copy link
Owner

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants