alg

alg

Issues with gettext in production

Hi gents,

I’m trying to upgrade our app from Elixir 1.3.3 to 1.6.5 and hit an issue with building for production. Mainly with compiling gettext:

 → MIX_ENV=prod mix deps.compile gettext
==> gettext
Compiling 20 files (.ex)
warning: redefining module Gettext.Backend (current version loaded from /Users/alg/p/picsafe-key-server/_build/prod/lib/gettext/ebin/Elixir.Gettext.Backend.beam)
  lib/gettext/backend.ex:1

warning: redefining module Gettext.Compiler (current version loaded from /Users/alg/p/picsafe-key-server/_build/prod/lib/gettext/ebin/Elixir.Gettext.Compiler.beam)
  lib/gettext/compiler.ex:1

warning: redefining module Gettext (current version loaded from /Users/alg/p/picsafe-key-server/_build/prod/lib/gettext/ebin/Elixir.Gettext.beam)
  lib/gettext.ex:1

warning: redefining module Gettext.Extractor (current version loaded from /Users/alg/p/picsafe-key-server/_build/prod/lib/gettext/ebin/Elixir.Gettext.Extractor.beam)
  lib/gettext/extractor.ex:1

warning: redefining module Gettext.Error (current version loaded from /Users/alg/p/picsafe-key-server/_build/prod/lib/gettext/ebin/Elixir.Gettext.Error.beam)
  lib/gettext.ex:483

warning: redefining module Gettext.ExtractorAgent (current version loaded from /Users/alg/p/picsafe-key-server/_build/prod/lib/gettext/ebin/Elixir.Gettext.ExtractorAgent.beam)
  lib/gettext/extractor_agent.ex:1


== Compilation error in file lib/gettext/extractor.ex ==
** (CompileError) lib/gettext/extractor.ex:120: Gettext.PO.__struct__/1 is undefined, cannot expand struct Gettext.PO
    lib/gettext/extractor.ex:112: (module)
could not compile dependency :gettext, "mix compile" failed. You can recompile this dependency with "mix deps.compile gettext", update it with "mix deps.update gettext" or clean it with "mix deps.clean gettext"

Any ideas what might be wrong?

Most Liked

NobbZ

NobbZ

When you upgrade the elixir or erlang version, always make sure you build from a clean state.

$ rm -rf _build deps
$ mix do deps.get, deps.compile

Then build your application as you are used to it.

alg

alg

Yeah, I would think so. Never noticed anything like it before. It wasn’t a version bump per se. I spent a day in dev/test making the app work on new version (1.6.6) and then just ran MIX_ENT=prod mix compile only to see it wouldn’t compile. So it’s something else. Just in case it’s helpful…

aabiro

aabiro

What triggered this for me was that I did not have my elixir_buildpack.config file in the root of my project

Where Next?

Popular in Questions Top

Tee
can someone please explain to me how Enum.reduce works with maps
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
Lily
In templates/appointment/index.html.eex: <%= for appointment <- @appointments do %> <tr> <td><%= appoi...
New
ycv005
I have followed this StackOverflow post to install the specific version of Erlang. And When I am running mix ecto.setup then getting fol...
New
JDanielMartinez
Hi! May someone helps me, please! I have two apps into an umbrella project: the first one is Database, which manages queries, and the se...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New

Other popular topics Top

senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
Nvim
Anybody knows a comprehensive comparison of Django and Phoenix, thanks for the help. Where are they similar? Where do they differ the m...
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
josevalim
Hi everyone, One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New
vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
AstonJ
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New

We're in Beta

About us Mission Statement