-
Notifications
You must be signed in to change notification settings - Fork 146
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
Fix compilation issue under OTP 19 #138
Conversation
LGTM! |
There is an issue with ExMachina when used with OTP 19 ``` == Compilation error on file test/support/test_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/ ``` By removing the `line: -1` the issue goes away. There is also no warning when doing this so it can be safely removed.
6d8b860
to
3da8f7c
Compare
Thanks.
I'm just curious what the difference in behaviour will be now (I don't quite understand this aspect of Elixir/Erlang). Also note: |
@nathany It appears there is no difference in behavior now because we no longer define factories with Great question though! |
Thanks @paulcsmith. Any plans to backport this fix to 0.6.x? (otherwise I may fork it and do that) Or is master close to a point where 1.0.0-beta.1 could be uploaded to hex as a pre-release? |
I probably won’t back port it since OTP 19 is super new and 1.0 is about to be released to hex :D #139 #139
|
There is an issue with ExMachina when used with OTP 19 ``` == Compilation error on file test/support/test_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/ ``` By removing the `line: -1` the issue goes away. There is also no warning when doing this so it can be safely removed.
There is an issue with ExMachina when used with OTP 19
By removing the
lineL -1
the issue goes away. There is also no warningwhen doing this so it can be safely removed.