pinterest / elixometer

A light Elixir wrapper around exometer.

Home Page:https://hexdocs.pm/elixometer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Could not compile dependecy :exometer_core

rlopzc opened this issue · comments

I'm following the instructions in the readme and this happens

Elixir 1.3.2
Phoenix 1.2.1

** (Mix) Could not compile dependency :exometer_core, "/Users/romariolopezc/.mix/rebar3 bare compile --paths "/Users/romariolopezc/Repos/Phoenix/soranus/_build/dev/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile exometer_core", update it with "mix deps.update exometer_core" or clean it with "mix deps.clean exometer_core"

mix deps.compile exometer_core

===> Compiling exometer_core
===> Compiling /Users/romariolopez/Repos/Phoenix/soranus/deps/exometer_core/src/exometer_report.erl failed
/Users/romariolopez/Repos/Phoenix/soranus/deps/exometer_core/src/exometer_report.erl:none: error in parse transform 'lager_transform': {function_clause,
                                             [{lager_transform,
                                               '-walk_ast/2-fun-0-',
                                               [{typed_record_field,
                                                 {record_field,251,
                                                  {atom,251,reporter}},
                                                 {type,251,union,
                                                  [{type,251,module,[]},
                                                   {atom,251,'_'}]}}],
                                               [{file,
                                                 "/Users/romariolopez/Repos/Phoenix/soranus/deps/lager/src/lager_transform.erl"},
                                                {line,62}]},
                                              {lists,map,2,
                                               [{file,"lists.erl"},
                                                {line,1239}]},
                                              {lager_transform,walk_ast,2,
                                               [{file,
                                                 "/Users/romariolopez/Repos/Phoenix/soranus/deps/lager/src/lager_transform.erl"},
                                                {line,62}]},
                                              {compile,
                                               '-foldl_transform/2-anonymous-2-',
                                               2,
                                               [{file,"compile.erl"},
                                                {line,958}]},
                                              {compile,foldl_transform,2,
                                               [{file,"compile.erl"},
                                                {line,960}]},
                                              {compile,
                                               '-internal_comp/4-anonymous-1-',
                                               2,
                                               [{file,"compile.erl"},
                                                {line,315}]},
                                              {compile,fold_comp,3,
                                               [{file,"compile.erl"},
                                                {line,341}]},
                                              {compile,internal_comp,4,
                                               [{file,"compile.erl"},
                                                {line,325}]}]}

** (Mix) Could not compile dependency :exometer_core, "/Users/romariolopez/.mix/rebar3 bare compile --paths "/Users/romariolopez/Repos/Phoenix/soranus/_build/dev/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile exometer_core", update it with "mix deps.update exometer_core" or clean it with "mix deps.clean exometer_core"

You must make SURE you have lager 3.2.1 installed. Lager 3.2.0 isn't compatible with erlang 19 (which is what I'm assuming you're running), and the dependency of ~> 3.2.1 matches 3.2.0.

Sorry i haven't tried, this weekend going to try and post my results, thanks for the follow up! @scohen

I'm going to close this because master is successfully building with lager >= 3.2.1 and OTP 19 and 20 these days.

Ran into this as well. Adding {:lager, ">= 3.2.1", override: true} as suggested above fixed it.