Open ghost opened 10 years ago
Perhaps the project you're trying to compile locks the version of relex which is being used. I experienced the same thing trying to compile expm. Try:
mix deps.unlock relex
mix deps.update relex
mix deps.compile relex # <<< should work now
Hello,
I'm seeing a different relex build issue when running mix
on a fresh clone:
$ mix
== Compilation error on file lib/app.ex ==
** (ArgumentError) cannot invoke def/2 outside module
(elixir) lib/kernel.ex:3571: Kernel.assert_module_scope/3
(elixir) lib/kernel.ex:2835: Kernel.define/4
(elixir) expanding macro: Kernel.def/2
I am curious if these defs now need to be funs for some reason? Reference: http://joearms.github.io/2013/05/31/a-week-with-elixir.html under the section Funs and defs are not the same
.
Otherwise, not sure what changed. Compile works perfectly fine under elixir 0.12.4.
My environment:
@randysecrist did you manage to build relex? I am experiencing the same issue.
@cconstantin not yet, gave up for a bit. Most of the breaks are because of changes in elixir in the 0.14 line.
I've fixed locally a number of problems, and am now learning about how elixir exceptions changed so that I can learn how the 'lib/app.ex' file needs to be updated.
In the build process of expm: