19 Jun 2014, 17:38
Generic-user-small

georgi knox (2 posts)

Hi All, I keep getting this issue when trying to run the GitHub issues project since upgrading to 0.14.0

Any help appreciated.

’ == Compilation error on file lib/issues/github_issues.ex == ** (CompileError) lib/issues/github_issues.ex:21: cannot invoke remote function Access.get/2 inside match (stdlib) lists.erl:1352: :lists.mapfoldl/3 (elixir) src/elixir_clauses.erl:26: :elixir_clauses.match/3 (elixir) src/elixir_clauses.erl:35: :elixir_clauses.clause/7 (elixir) src/elixir_clauses.erl:82: anonymous fn/4 in :elixir_clauses.do_clauses/4 (stdlib) lists.erl:1352: :lists.mapfoldl/3 (elixir) src/elixir_clauses.erl:88: :elixir_clauses.do_clauses/4 (elixir) src/elixir.erl:156: :elixir.erl_eval/2 `

19 Jun 2014, 19:40
Generic-user-small

David Villanueva (2 posts)

I also have problems when i try to run the tests:

➜ issues mix test * Compiling httpotion lib/httpotion.ex:118: warning: Kernel.defrecord/3 is deprecated, use structs instead lib/httpotion.ex:128: warning: Kernel.defrecord/2 is deprecated, use structs instead lib/httpotion.ex:129: warning: Kernel.defrecord/2 is deprecated, use structs instead lib/httpotion.ex:130: warning: Kernel.defrecord/2 is deprecated, use structs instead lib/httpotion.ex:131: warning: Kernel.defrecord/2 is deprecated, use structs instead

== Compilation error on file lib/httpotion.ex == ** (CompileError) lib/httpotion.ex:136: function iolist_to_binary/1 undefined (stdlib) lists.erl:1336: :lists.foreach/2 (stdlib) erl_eval.erl:657: :erl_eval.do_apply/6 (elixir) src/elixir.erl:156: :elixir.erl_eval/2 (elixir) src/elixir.erl:149: :elixir.eval_forms/4 (elixir) src/elixir_lexical.erl:17: :elixir_lexical.run/2 (elixir) src/elixir.erl:156: :elixir.erl_eval/2

If i execute ‘mix deps.get’ says that all dependencies are solved :(

19 Jun 2014, 22:05
Generic-user-small

David Villanueva (2 posts)

Changing iolist_to_binary for iodata_to_binary everything is compiling fine !!

26 Jun 2014, 01:44
Generic-user-small

Luke Imhoff (6 posts)

georgi knox, if you’re using pragdave/httpotion, switch to orginal repository, myfreeweb/httpotion as the original author updated httpotion to use structs instead of records, so it works with 0.14. You do need to update the code to use the %{} syntax for structs tho. It's covered in the readme: https://github.com/myfreeweb/httpotion#usage. I'll post an errata once I figure out the new syntax.

26 Jun 2014, 02:08
Generic-user-small

Luke Imhoff (6 posts)

First, here’s the change to use myfreeweb/httpotion: https://github.com/KronicDeth/issues/commit/7aa7dd83a0723def1e2fe3474575af442b56d377

Here’s the changes to use the structs version of HTTPotion instead of the out-dated Records version:

https://github.com/KronicDeth/issues/compare/59fe335d1258ae9c644d160b45a6fd367906f542…master

  You must be logged in to comment