I’m learning Liveview following Bruce Tate course. I’ve implemented this protocol following along the course. And it works:
iex(1)> Tetris.Brick.new
⬛️🔲⬛️⬛️
⬛️🔲⬛️⬛️
⬛️🔲⬛️⬛️
⬛️🔲⬛️⬛️
location: {40, 0}
refection: false
rotation: 0
But as soon as I started using this package as dep for this other app, it stopped working:
iex(1)> Tetris.Brick.new
%Inspect.Error{
message: "got Protocol.UndefinedError with message \"protocol Enumerable not implemented for nil of type Atom. This protocol is implemented for the following type(s): HashSet, Range, Map, Function, List, Stream, Date.Range, HashDict, GenEvent.Stream, MapSet, File.Stream, IO.Stream\" while inspecting %{__struct__: Tetris.Brick, location: {40, 0}, name: :i, reflection: false, rotation: 0}"
}
I’ve read online that for some people Protocol failures where common when working in Umbrella projects, but my case is not really an umbrella app.
Any help you can give me is appreciated.