tallakt

tallakt

Issues running `mix docs` - (UndefinedFunctionError) function Makeup.Application

I am having issues running mix doc all of a sudden though I did not make a lot of changes to my library codepagex for a long time. I am getting:

codepagex (master *) % mix docs

23:09:22.795 [notice] Application makeup exited: exited in: Makeup.Application.start(:normal, [])
    ** (EXIT) an exception was raised:
        ** (UndefinedFunctionError) function Makeup.Application.start/2 is undefined (module Makeup.Application is not available)
            (makeup 1.1.2) Makeup.Application.start(:normal, [])
            (kernel 10.0) application_master.erl:295: :application_master.start_it_old/4

23:09:22.802 [notice] Application nimble_parsec exited: :stopped

23:09:22.802 [notice] Application earmark_parser exited: :stopped

23:09:22.802 [notice] Application eex exited: :stopped
** (MatchError) no match of right hand side value: {:error, {:makeup, {:bad_return, {{Makeup.Application, :start, [:normal, []]}, {:EXIT, {:undef, [{Makeup.Application, :start, [:normal, []], []}, {:application_master, :start_it_old, 4, [file: ~c"application_master.erl", line: 295]}]}}}}}}
    (ex_doc 0.33.0) lib/mix/tasks/docs.ex:337: Mix.Tasks.Docs.run/3
    (mix 1.16.3) lib/mix/task.ex:478: anonymous fn/3 in Mix.Task.run_task/5
    (mix 1.16.3) lib/mix/cli.ex:96: Mix.CLI.run_task/2
    /opt/homebrew/bin/mix:2: (file)

My project is here: codepagex/mix.exs at main · tallakt/codepagex · GitHub

Appreciate any help, I’m totally lost here…

Marked As Solved

tallakt

tallakt

So duplicating the code into a new mix project worked. Not many changes though, Im not sure which one did the trick:

-defmodule Codepagex.Mixfile do
+defmodule Codepagex.MixProject do
-    [applications: [:logger]]
+      extra_applications: [:logger]
-      build_embedded: Mix.env() == :prod,

Also Liked

dimitarvp

dimitarvp

I presume you have upgraded the locally used Erlang and Elixir?

dimitarvp

dimitarvp

So if you’re now running latest Erlang / Elixir I would also update all dependencies to their latest version.

dimitarvp

dimitarvp

OK so I just cloned your repo and ran mix do deps.get, compile successfully.

Erlang version is 26.2.5.
Elixir version is 1.16.3-otp-26.

Let’s see about mix docs now…

Last Post!

tallakt

tallakt

Im glad I was able to restart this project, I’ll try to be more prompt with updates. Thanks for the support

Where Next?

Popular in Questions Top

minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
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
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

Other popular topics Top

JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 31525 112
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
AstonJ
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New

We're in Beta

About us Mission Statement