erlware / relx

Sane, simple release creation for Erlang
http://erlware.github.io/relx
Apache License 2.0
697 stars 232 forks source link

ERROR - Could not compile dependency :relx #707

Closed varshney-nishant closed 5 years ago

varshney-nishant commented 5 years ago

Hi, I am trying to building a app on window 10. it was working couple of days.It is happened when i had deleted _build folder and deps folder by mistake. After that when i fetched all dependencies by 'mix deps.get' and compiled but not succeeded and got below error. Please help me out to solve this issue. FYI..I ran this application on docker contanier where it is working perfectly. I have following elixir version Erlang/OTP 20 [erts-9.2] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10]

Elixir 1.6.4 (compiled with OTP 19) rebar 3.6.1 on Erlang/OTP 20 Erts 9.2 ERROR ===> Compiling relx ===> Compiling src/rlx_topo.erl failed include/relx.hrl:18: can't find include lib "erlware_commons/include/ec_cmd_log.hrl" include/relx.hrl:19: can't find include lib "providers/include/providers.hrl"

src/rlx_topo.erl:110: undefined macro 'PRV_ERROR/1'

src/rlx_topo.erl:65: function iterator/2 undefined src/rlx_topo.erl:91: spec for undefined function iterator/2

==> api * (Mix) Could not compile dependency :relx, "escript.exe "c:/Users/XYZ/.mix/rebar3" bare compile --paths "c:/Users/XYZ/Documents/project-apientry/_build/staging/lib//ebin"" command failed. You can recompile this dependency with "mix deps.compile relx", update it with "mix deps.update relx" or clean it with "mix deps.clean relx"

tsloughter commented 5 years ago

Are you using exrm? Is that why it is trying to build relx?

varshney-nishant commented 5 years ago

yes, {:exrm, "~> 1.0.6"}

varshney-nishant commented 5 years ago

i have replaced to :exrm to distillery and remove all relx's dependency. Now it is working.