josephwilk / amrita

A polite, well mannered and thoroughly upstanding testing framework for Elixir
201 stars 28 forks source link

Fails to compile on elixir 0.14.3 #112

Closed ritalin closed 10 years ago

ritalin commented 10 years ago

got below compile error:

== Compilation error on file lib/amrita/checkers/exceptions.ex ==
** (CompileError) lib/amrita/checkers/exceptions.ex:24: invalid rescue clause. The clause should match on an alias, a variable or be in the `var in [alias]` format
    (elixir) src/elixir_exp_clauses.erl:22: :elixir_exp_clauses.clause/5
   …

Following by "https://groups.google.com/forum/#!topic/elixir-lang-talk/KUgeG3umQ1Y", compile error has resolved.

But then other error has occurred.

== Compilation error on file lib/amrita/checkers/collection.ex ==
** (CompileError) lib/amrita/checkers/collection.ex:53: cannot invoke local is_record/2 inside guard
    (stdlib) lists.erl:1352: :lists.mapfoldl/3
    …

it seems for is_record function to due to be deprecated in elixir 0.13.3. Replacing to is_map, this error has resolved.

Simiraly, fixed at "lib/amrita/checkers/collection.ex:96" too.

But compile error involved deprecation has occurred yet…

ritalin commented 10 years ago

Because currentlly, target compiler version for amrita is > 0.13, This solution might not be use...

ritalin commented 10 years ago

I can not detect that branch: "chasing-elixir-master" is in progress. Therefore, this issue is closed.