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

error in parse transform 'mixer' #23

Open
asyncmind0 opened this issue Jan 4, 2022 · 7 comments
Open

error in parse transform 'mixer' #23

asyncmind0 opened this issue Jan 4, 2022 · 7 comments

Comments

@asyncmind0
Copy link

I'm trying to update the deps on this https://github.com/jagguli/sumo_db_riak/tree/wip project and get the tests running

but I ran into this issue

test/meta_SUITE.erl:none: error in parse transform 'mixer':
exception error: an error occurred when evaluating an arithmetic expression
  in function  mixer:'-insert_stubs/3-fun-0-'/2 (/home/steven/streethawk/contextual/_checkouts/sumo_db_riak/_build/test/lib/mixer/src/mixer.erl, line 169)
  in call from lists:foldr/3 (lists.erl, line 1280)
  in call from mixer:insert_stubs/3 (/home/steven/streethawk/contextual/_checkouts/sumo_db_riak/_build/test/lib/mixer/src/mixer.erl, line 175)
  in call from mixer:parse_transform/2 (/home/steven/streethawk/contextual/_checkouts/sumo_db_riak/_build/test/lib/mixer/src/mixer.erl, line 42)
  in call from compile:foldl_transform/3 (compile.erl, line 1147)
  in call from compile:fold_comp/4 (compile.erl, line 418)
  in call from compile:internal_comp/5 (compile.erl, line 402)
  in call from compile:'-internal_fun/2-anonymous-0-'/2 (compile.erl, line 229)

not sure why this is happening, any help would be appreciated

@elbrujohalcon
Copy link
Member

I'm not 100% sure, but you can try moving mixer to its latest version: 1.2.0

@paulo-ferraz-oliveira
Copy link

I remember something similar to this. It had to do with internal changes to Erlang/OTP and the way a location is no longer simply just a line (integer), but rather a tuple (with line and column).

I suggest the same as @elbrujohalcon, that you move to the most recent version and then report the results here, if you feel like it.

Also, what Erlang/OTP version are you using? Is it any of the ones tested by us in the GHA: https://github.com/inaka/mixer/blob/master/.github/workflows/ci.yml#L17?

@asyncmind0
Copy link
Author

yep tried latest version 1.2.0

image

@elbrujohalcon
Copy link
Member

@jagguli I don't understand. Does it fail with version 1.2.0, as well?

@asyncmind0
Copy link
Author

Yes it fails with the 1.2.0 version as well.

@elbrujohalcon
Copy link
Member

Oh, it fails in sumo_db_riak's master as well… I see…

@elbrujohalcon
Copy link
Member

@jagguli I'm not entirely sure what the issue is, but… To "fix" sumo_db_riak (and this is something we should do on the inaka side, but it has proven to be non-trivial since we don't have the count_by/3 callback that you recently added), you can get rid of katana-test and the meta_SUITE entirely and add a test alias in rebar.config, like I did on worker_pool: https://github.com/inaka/worker_pool/blob/6275bfc411ad27809a0185fc7a2839a8423a4bd3/rebar.config#L73-L83

That will solve your problem, and improve sumo_db_riak in the process.

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