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 master · 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…

dimitarvp

dimitarvp

Well curiously I couldn’t get it to work quickly either.

So let’s backtrack. What were the last Erlang/Elixir versions you used successfully when working on the library?

dimitarvp

dimitarvp

Usually I remember this spec was several versions behind. I’d start with the release that was semi-recent at 2020 and take it from there.

Might be necessary I am afraid. Curious what updates you’ll give us because I like your library.

Where Next?

Popular in Questions Top

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
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
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
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
makeitrein
Hey all, just started picking up Elixir last week and am writing a scraper as a learning project. Baby step #1 is extracting the number ...
New
johnnyicon
Hi all, I've just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I'm trying to use Postg...
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
kostonstyle
Hi all I want to have a unix time, from the current time plus 1 hour. DateTime.now + 1 hour How to get it in elixir? Thanks
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

Other popular topics Top

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
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
Tee
can someone please explain to me how Enum.reduce works with maps
New
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
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
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? https://hexdocs.pm/ecto/Ecto.Repo.h...
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 42633 214
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New

We're in Beta

About us Mission Statement