parroty / excheck

Property-based testing library for Elixir (QuickCheck style).
MIT License
316 stars 26 forks source link

Can't compile triq #30

Closed jimmyhmiller closed 8 years ago

jimmyhmiller commented 8 years ago

After adding

{:excheck, "~> 0.3", only: :test},
{:triq, github: "krestenkrab/triq", only: :test}

to my mix.exs, I get the following.

⇒  mix test      
==> triq (compile)
Compiling src/triq_dom.erl failed:
src/triq_dom.erl:290: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:291: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:370: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:409: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:411: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:448: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:463: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:465: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:469: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:470: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:483: random:uniform/0: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:484: random:uniform/0: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:495: random:uniform/0: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:517: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:519: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:554: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:573: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:588: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:608: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:622: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:634: random:uniform/0: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:645: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:655: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:660: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:684: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:686: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:691: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:734: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:736: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:785: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:794: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:806: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:811: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:812: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:835: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:916: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:963: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:986: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:1002: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:1063: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:1083: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:1135: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:1148: random:seed/0: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:1149: random:seed/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:1153: random:seed/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:1155: random:seed/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:1304: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:1324: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:1384: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
src/triq_dom.erl:1386: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
ERROR: compile failed while processing /Users/jimmyhmiller/Documents/Code/trabian/cu1-membership/api/deps/triq: rebar_abort
** (Mix) Could not compile dependency :triq, "/Users/jimmyhmiller/.mix/rebar compile skip_deps=true deps_dir="/Users/jimmyhmiller/Documents/Code/trabian/cu1-membership/api/_build/test/lib"" command failed. You can recompile this dependency with "mix deps.compile triq", update it with "mix deps.update triq" or clean it with "mix deps.clean triq"

If you need anymore information, let me know.

luc-tielen commented 8 years ago

I added this issue to triq a few days ago. Somebody already posted a fix: https://github.com/krestenkrab/triq/pull/61 This means it can be solved by using that specific fork of triq until it gets fixed in the main repo.

luc-tielen commented 8 years ago

Somebody merged the fix into a fork yesterday, so I updated the triq dependency in mix.exs. Should be fixed now.

parroty commented 8 years ago

Thanks! It's pushed as v0.5.0