fdietz / elixir-feed-parser

Elixir Feed Parser
Other
49 stars 18 forks source link

UndefinedFunctionError function Timex.parse/2 is undefined (module Timex is not available) #14

Open jmn opened 3 years ago

jmn commented 3 years ago

Timex import is missing in https://github.com/fdietz/elixir-feed-parser/blob/master/lib/parsers/helper.ex

EDIT: it seems this error is also because of this: https://github.com/fdietz/elixir-feed-parser/blob/f5e85e168d466d70e9798a38993ce35714ece84a/mix.exs#L21

I changed this to

 def application do
    [extra_applications: [:logger, :xmerl, :tzdata]]
  end

and it worked.

jrogov commented 3 years ago

Second this. :applications should almost never be used. All deps with runtime: true (default) are included as applications anyway IF :applications is not specified explicitly. IIUC extra_applications: [:logger, :xmerl] is really needed here, since timex is included anyway.