fredwu / crawler

A high performance web crawler / scraper in Elixir.
939 stars 91 forks source link

could not compile dependency :crawler #31

Closed diegosouza closed 4 years ago

diegosouza commented 4 years ago

Hello people,

I've created a simple project (with and without the --sup), I've added {:crawler, "~> 1.1"} to my mix.exs and then mix deps.get. Everything was fine. But when I launch it with: iex -S mix I get:

# details above omitted

==> crawler
Compiling 32 files (.ex)

== Compilation error in file lib/crawler/fetcher/retrier.ex ==
** (CompileError) lib/crawler/fetcher/retrier.ex:25: undefined function exp_backoff/0
    (elixir 1.10.1) src/elixir_locals.erl:114: anonymous fn/3 in :elixir_locals.ensure_no_undefined_local/3
    (stdlib 3.11.2) erl_eval.erl:680: :erl_eval.do_apply/6
could not compile dependency :crawler, "mix compile" failed. You can recompile this dependency with "mix deps.compile crawler", update it with "mix deps.update crawler" or clean it with "mix deps.clean crawler"

Environment info:

Any idea about what's happening? Thanks in advance.

kokolegorille commented 4 years ago

It seems to be fixed in master, as the 1.1 uses exp_backoff(), but it should be exponential_backoff().

diegosouza commented 4 years ago

@kokolegorille you're right. It's broken. I hope @fredwu or another core dev release the 1.1.1 version soon.

Thank you all.

fredwu commented 4 years ago

Version 1.1.1 released. :)

diegosouza commented 4 years ago

Thank you very much!