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

joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 record...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
dokuzbir
Hello, I am trying to convert my lists to string without losing brackets.For start i have 3 map. They look like these buyer = %{ id: ...
New
polypush135
As many of you may have realized by now (sorry for all the posts here) I’ve been working on a db problem where I’m trying to aggregate a ...
New
lk-geimfari
What is most correct way to open, read and parse JSON file with poison? For example if we have example.json file in root of some projec...
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
script
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this "1000" What is the ...
New
rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list....
New
Exadra37
Sometimes I want to check if the input into a function is not a blank string. My first approach: defmodule Example do def do_stuff(s...
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

Other popular topics Top

peerreynders
Manning 2016 Halloween weekend sale via Deal of the Day Friday, October 28 - Half off all MEAPs - code WM102816LT Saturday, October 29 ...
326 29600 154
New
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
sergio
In Ruby, I can go: User.find_by(email: "foobar@email.com").update(email: "hello@email.com") How can I do something similar in Elixir? ...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
malloryerik
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode. The solution seems to be, in a hyphena...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
lk-geimfari
What is most correct way to open, read and parse JSON file with poison? For example if we have example.json file in root of some projec...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
273 38985 115
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New

We're in Beta

About us Mission Statement