Closed seb3s closed 3 years ago
calendar_interval is an optional package and depending on whether its configured in mix.exs
certain functionality is enabled. So these particular errors are entirely expected.
For the original issue I have to debug some more because what you are seeing is unexpected. The workaround working is good. I may not get to further debugging until the weekend though.
Whats curious is that if I do mix compile --force
in :dev
mode it compiles fine (on my machine). If I MIX_ENV=test mix compile --force
then I see the error.
Do you see the same?
I've got some
16:26:58.909 [info] module Elixir.CalendarInterval ensure_compiled error: :unavailable
in both cases
I expect that message since you don't have {:calendar_interval, "~> 0.2"}
in your mix.exs
. That's not an error.
The issue you raised was related to:
== Compilation error in file lib/kandesk_web/router.ex ==
** (Cldr.UnknownBackendError) The backend KandeskWeb.Cldr is not known or not a backend module.
(ex_cldr 2.16.2) lib/cldr/plug/plug_set_locale.ex:480: Cldr.Plug.SetLocale.validate_cldr/2
(ex_cldr 2.16.2) lib/cldr/plug/plug_set_locale.ex:175: Cldr.Plug.SetLocale.init/1
I do not get this compiling in :dev
but I do with :test
which is unexpected.
Sorry for misunderstanding ! Yes I do have the same behaviour. No error in dev but only in test.
OK, thanks for confirming. At least we have consistent results! Gives me something to think about, but probably not until the weekend; hope thats ok.
Yes, in the mean time, I've added require KandeskWeb.Cldr in router.ex as suggested.
Hello, following the https://github.com/seb3s/kandesk/issues/4 fix, I noticed that I also have some other compilations that fails with :unavailable error.
I added a log as below :
Then when running mix compile on my project (kandesk) I get this somewhere in the log :
So I suspect some code is not compiled as intended. Right now I haven't noticed any side effects but I'm not currently using all the provided functions.
Hope this helps, cheers
Sébastien.