pinterest / riffed

Provides idiomatic Elixir bindings for Apache Thrift
Apache License 2.0
308 stars 37 forks source link

Compile error in examples/tutorial/ #42

Closed neilberget closed 7 years ago

neilberget commented 7 years ago

With a fresh clone of the repo, if I cd into examples/tutorial and run mix deps.get followed by mix compile I get the following error:

== Compilation error on file lib/riffed_tutorial/models.ex ==
** (FunctionClauseError) no function clause matching in :tutorial_types.struct_info_ext/1
    src/tutorial_types.erl:21: :tutorial_types.struct_info_ext(:User)
    lib/riffed/struct.ex:157: Riffed.Struct.build_struct_and_conversion_function/5
    (elixir) lib/enum.ex:1623: Enum."-reduce/3-lists^foldl/2-0-"/3
    expanding macro: Riffed.Struct.__before_compile__/1
    lib/riffed_tutorial/models.ex:1: RiffedTutorial.Models (module)

I'm getting the same error in my own project trying to use riffed so wondering if you have any ideas?

Running Elixir 1.3.4

neilberget commented 7 years ago

Nevermind -- realized my issue was with the thrift compiler installed on my system. A fresh install fixed the issue.