Function Gettext.Compiler.__hash__/1 is undefined or private

Hello,

After switching between branches, I was prompted to re-fetch my deps, which I did. That must have rolled something forward, because I started getting the gettext compiler error vs. the warning that support would be removed shortly. I have removed :gettext from the list of compilers (, but not the dependency) and I’m still getting the following error when I try to compile. Interestingly for my pro-am brain is that if I switch back to the other working branch I don’t have any issues starting the server.

Blockquote

** (UndefinedFunctionError) function Gettext.Compiler.hash/1 is undefined or private
(gettext 0.19.1) Gettext.Compiler.hash(“priv/gettext”)
lib/MyApp_web/gettext.ex:1: MyAppWeb.Gettext.mix_recompile?/0
(mix 1.13.2) lib/mix/compilers/elixir.ex:293: anonymous fn/2 in Mix.Compilers.Elixir.compiler_info_from_updated/9
(elixir 1.13.2) lib/enum.ex:2396: Enum.“-reduce/3-lists^foldl/2-0-”/3
(mix 1.13.2) lib/mix/compilers/elixir.ex:292: Mix.Compilers.Elixir.compiler_info_from_updated/9
(mix 1.13.2) lib/mix/compilers/elixir.ex:116: Mix.Compilers.Elixir.compile/7
(mix 1.13.2) lib/mix/task.ex:397: anonymous fn/3 in Mix.Task.run_task/3
(mix 1.13.2) lib/mix/tasks/compile.all.ex:92: Mix.Tasks.Compile.All.run_compiler/2
(mix 1.13.2) lib/mix/tasks/compile.all.ex:72: Mix.Tasks.Compile.All.compile/4
(mix 1.13.2) lib/mix/tasks/compile.all.ex:59: Mix.Tasks.Compile.All.with_logger_app/2
(mix 1.13.2) lib/mix/tasks/compile.all.ex:36: Mix.Tasks.Compile.All.run/1
(mix 1.13.2) lib/mix/task.ex:397: anonymous fn/3 in Mix.Task.run_task/3
(mix 1.13.2) lib/mix/tasks/compile.ex:131: Mix.Tasks.Compile.run/1
(mix 1.13.2) lib/mix/task.ex:397: anonymous fn/3 in Mix.Task.run_task/3
(mix 1.13.2) lib/mix/tasks/app.config.ex:32: Mix.Tasks.App.Config.run/1
(mix 1.13.2) lib/mix/task.ex:397: anonymous fn/3 in Mix.Task.run_task/3
(mix 1.13.2) lib/mix/tasks/app.start.ex:46: Mix.Tasks.App.Start.run/1
(mix 1.13.2) lib/mix/task.ex:397: anonymous fn/3 in Mix.Task.run_task/3
(mix 1.13.2) lib/mix/tasks/run.ex:129: Mix.Tasks.Run.run/5
(mix 1.13.2) lib/mix/tasks/run.ex:86: Mix.Tasks.Run.run/1

Blockquote

My mix file looks like this, because I already removed the gettext from the list of compilers:

Blockquote
def project do
[
app: :my_app,
version: “0.1.0”,
elixir: “~> 1.13.2”,
compilers: [:phoenix] ++ Mix.compilers(),

]

Blockquote
defp deps do
[
{:gettext, “~> 0.11”},
]

Blockquote

Any support on figuring out this error would go a long way! Thank you in advance for considering.

Closing the loop. I’m not sure if what I did fixed the problem, but it is working now.
Today I tried:
Updating the gettext version in deps from .11 to .22, which resolved a little lower, I think.
Used mix deps.clean --all.
Used mix deps.get.

Now compiles and starts just fine.