kipcole9 / calendrical

Calendars and Calendar Calculations for Elixir
Other
6 stars 1 forks source link

Compilation error in latest calendrical version #2

Open rengel-de opened 6 years ago

rengel-de commented 6 years ago

I downloaded and unzipped 'calendrical' into a new directory. Then I did a 'mix deps.get' which was OK. But when I did a 'mix do clean, compile' I got a compilation error:

`D:\Projekte\Chronos\calendrical>mix do clean, compile
Compiling 12 files (.ex)
warning: function naive_datetime_from_iso_days/1 required by behaviour Calendar is not implemented (in module Calendrical.Calendar.Armenian)
  lib/calendrical/calendar/armenian.ex:1

== Compilation error in file lib/calendrical/calendar/julian.ex ==
** (UndefinedFunctionError) function Calendar.ISO.naive_datetime_to_rata_die/7 is undefined or private. Did you mean one of:

      * naive_datetime_from_iso_days/1
      * naive_datetime_to_iso8601/7
      * naive_datetime_to_iso8601/8
      * naive_datetime_to_iso_days/7
      * naive_datetime_to_string/7

    (elixir) Calendar.ISO.naive_datetime_to_rata_die(0, 12, 30, 0, 0, 0, {0, 6})
    lib/calendrical/calendar/julian.ex:6: (module)
    (stdlib) erl_eval.erl:670: :erl_eval.do_apply/6`
kipcole9 commented 6 years ago

My apologies, this lib needs some attention for sure. Thanks for bringing it to my attention. I’ll struggle to update it for the next few days - if its time critical for you however I will try to see if I can do better than that.

On 22 Jan 2018, at 8:23 pm, Reinhard Engel notifications@github.com wrote:

I downloaded and unzipped 'calendrical' into a new directory. Then I did a 'mix deps.get' which wasd OK. But when I did a 'mix do clean, compile' I got a compilation error:

`D:\Projekte\Chronos\calendrical>mix do clean, compile Compiling 12 files (.ex) warning: function naive_datetime_from_iso_days/1 required by behaviour Calendar is not implemented (in module Calendrical.Calendar.Armenian) lib/calendrical/calendar/armenian.ex:1

== Compilation error in file lib/calendrical/calendar/julian.ex == ** (UndefinedFunctionError) function Calendar.ISO.naive_datetime_to_rata_die/7 is undefined or private. Did you mean one of:

  * naive_datetime_from_iso_days/1
  * naive_datetime_to_iso8601/7
  * naive_datetime_to_iso8601/8
  * naive_datetime_to_iso_days/7
  * naive_datetime_to_string/7

(elixir) Calendar.ISO.naive_datetime_to_rata_die(0, 12, 30, 0, 0, 0, {0, 6})
lib/calendrical/calendar/julian.ex:6: (module)
(stdlib) erl_eval.erl:670: :erl_eval.do_apply/6`

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kipcole9/calendrical/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AAA-F40Bj2aGGABYY2BSjGPhHbH_26gnks5tNH2ngaJpZM4Rmlex.

rengel-de commented 6 years ago

Thank's for your answer! Just take your time, it's not time critical for me.