-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Expected behavior:
Forma works in self-contained releases.
Actual behavior:
Forma is working well in the dev environment. Forma isn't working at all in compiled releases as the typespecs the library is using are stripped away during compilation. Trying to use forma in production code results in the following error:
** (Protocol.UndefinedError) protocol Enumerable not implemented for nil of type Atom. This protocol is implemented for the following type(s): Ecto.Adapters.SQL.Stream, Postgrex.Stream, DBConnection.Stream, DBConnection.PrepareStream, GenEvent.Stream, HashSet, Date.Range, IO.Stream, Map, File.Stream, Stream, MapSet, Range, HashDict, List, Function
(elixir) lib/enum.ex:1: Enumerable.impl_for!/1
(elixir) lib/enum.ex:141: Enumerable.reduce/3
(elixir) lib/enum.ex:3023: Enum.map/2
(forma) lib/forma/typespecs.ex:6: Forma.Typespecs.compile/1
(forma) lib/forma/types.ex:32: Forma.Types.compile/1
(forma) lib/forma/types.ex:23: Forma.Types.handle_call/3
(stdlib) gen_server.erl:661: :gen_server.try_handle_call/4
(stdlib) gen_server.erl:690: :gen_server.handle_msg/6
(elixir) lib/gen_server.ex:1009: GenServer.call/3
(forma) lib/forma.ex:96: Forma.parse/3
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels