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

Attribute errors #110

Merged
merged 2 commits into from
Aug 27, 2013
Merged

Attribute errors #110

merged 2 commits into from
Aug 27, 2013

Conversation

twonds
Copy link
Contributor

@twonds twonds commented Aug 27, 2013

meck_code_gen:to_forms fails when deprecated attribute is used in a module.

undefined
*unexpected termination of test process*
::{compile_forms,{error,[{[],
                          [{64,erl_lint,
                            {bad_deprecated,{safe_multi_server_call,...}}},
                           {64,erl_lint,{bad_deprecated,{...}}}]}],
                        [{[],[{64,erl_lint,{undefined_behaviour,[...]}}]}]}}

This code generates the above error :

{attribute,52,module,rpc},
   {attribute,64,behaviour,[gen_server]},
   {attribute,64,deprecated,
              [{safe_multi_server_call,2},{safe_multi_server_call,3}]}

If we ignore deprecated the problem is fixed.

eproxus added a commit that referenced this pull request Aug 27, 2013
Ignore 'depracated' module attribute
@eproxus eproxus merged commit 594540c into eproxus:master Aug 27, 2013
@eproxus
Copy link
Owner

eproxus commented Aug 27, 2013

Nice work, thanks!

@eproxus eproxus added the bug label Jun 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants