mixer
mixer copied to clipboard
error in parse transform 'mixer'
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
I'm not 100% sure, but you can try moving mixer
to its latest version: 1.2.0
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?
yep tried latest version 1.2.0

@jagguli I don't understand. Does it fail with version 1.2.0
, as well?
Yes it fails with the 1.2.0
version as well.
Oh, it fails in sumo_db_riak
's master
as well… I see…
@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.