oreillymedia / etudes-for-elixir

Companion exercises for Introducing Elixir
http://chimera.labs.oreilly.com/books/1234000001642
515 stars 159 forks source link

12.1 CompileError (weather.ex). Erlangs atom_to_binary() removed #31

Closed far closed 9 years ago

far commented 9 years ago

Trace:


iex(4)> c("weather.ex")

== Compilation error on file weather.ex ==
** (CompileError) weather.ex:81: function atom_to_binary/1 undefined
    (stdlib) lists.erl:1337: :lists.foreach/2
    (stdlib) erl_eval.erl:669: :erl_eval.do_apply/6

** (exit) shutdown: 1
    (elixir) lib/kernel/parallel_compiler.ex:199: Kernel.ParallelCompiler.handle_failure/5
    (elixir) lib/kernel/parallel_compiler.ex:182: Kernel.ParallelCompiler.wait_for_messages/8
    (elixir) lib/kernel/parallel_compiler.ex:55: Kernel.ParallelCompiler.spawn_compilers/3
       (iex) lib/iex/helpers.ex:94: IEx.Helpers.c/2

Etude plays as described after this fix.

far commented 9 years ago

Same error in 12.2

jdeisenberg commented 9 years ago

Thanks very much!