Skip to content

Instantly share code, notes, and snippets.

@aphillipo
Created July 11, 2016 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aphillipo/b015ca2518434e56b98ed9e87d59dc22 to your computer and use it in GitHub Desktop.
Save aphillipo/b015ca2518434e56b98ed9e87d59dc22 to your computer and use it in GitHub Desktop.
== Compilation error on file test/support/factory.ex ==
** (ArgumentError) argument error
(stdlib) erl_anno.erl:318: :erl_anno.set(:file, 'nofile', -1)
(stdlib) erl_parse.yrl:1516: anonymous fn/3 in :erl_parse.map_anno/2
(stdlib) erl_parse.yrl:1631: :erl_parse.modify_anno1/3
(stdlib) erl_parse.yrl:1517: :erl_parse.map_anno/2
(stdlib) erl_lint.erl:703: :erl_lint."-set_file/2-lc$^0/1-0-"/2
(stdlib) erl_lint.erl:448: :erl_lint.exprs_opt/3
(stdlib) erl_eval.erl:173: :erl_eval.check_command/2
@hickscorp
Copy link

Hey,

Did you solve that error? I'm happening to see the same thing when trying to compile https://github.com/absinthe-graphql/absinthe_example

Cheers!

@the-guitarman
Copy link

the-guitarman commented Oct 12, 2016

I've exact the same issue. I can't see any error within my test/support/factory.ex. What I did some days ago, I upgraded my elixir installation from v1.3 to v1.3.3 and therefore Erlang/OTP from version 18 to 19.

Update: I upgraded my ex_machina version from "> 0.6" to "> 1.0" and refactored my tests. Now it works.

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