tallakt

tallakt

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…

Showing Posts 1 to 10

dimitarvp

dimitarvp

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

tallakt

tallakt OP

Yes I am on Elixir 1.16.3 and MacOS, Elixir and Erlang was installed with asdf latest

tallakt

tallakt OP

Actually the first time I’m running I am getting a different compilation error. The second time I am getting the one described above. The initial error is:

==> codepagex
Generated codepagex app
Generating docs...
** (UndefinedFunctionError) function :earmark_parser_string_lexer.string/1 is undefined (module :earmark_parser_string_lexer is not available)
    (earmark_parser 1.4.39) :earmark_parser_string_lexer.string(~c"An error returned by Codepagex")
    (earmark_parser 1.4.39) lib/earmark_parser/helpers/leex_helpers.ex:20: EarmarkParser.Helpers.LeexHelpers.tokenize/2
    (earmark_parser 1.4.39) lib/earmark_parser/helpers/lookahead_helpers.ex:16: EarmarkParser.Helpers.LookaheadHelpers.opens_inline_code/1
    (earmark_parser 1.4.39) lib/earmark_parser/parser.ex:658: EarmarkParser.Parser._inline_or_text?/2
    (earmark_parser 1.4.39) lib/earmark_parser/parser.ex:486: EarmarkParser.Parser._consolidate_para/4
    (earmark_parser 1.4.39) lib/earmark_parser/parser.ex:215: EarmarkParser.Parser._parse/4
    (earmark_parser 1.4.39) lib/earmark_parser/parser.ex:68: EarmarkParser.Parser.lines_to_blocks/3
    (earmark_parser 1.4.39) lib/earmark_parser/parser.ex:60: EarmarkParser.Parser.parse_lines/3
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?

tallakt

tallakt OP

I’m not sure. Last update was in 2020, I would think the version 1.5.x specified in mix.exs is accurate. I don’t remember what happened back then.

I’m thinking recreating the code from a new project mix new then add stuff until I see when it breaks. That would take a bit longer though. Maybe thats what I have to do

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.

tallakt

tallakt OP

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,
dimitarvp

dimitarvp

Cool, glad you solved it!

Where Next? Top

Trending in Questions Top

stjefim
Hello! Suppose you are building workflow (order / task / payment) processing system with the following requirements: Each workflow con...
New
jonnycharles
I’m in search of an Elixir library that offers PDF generation capabilities similar to Ruby’s Prawn. While there have been discussions abo...
New
spammy
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
Blokh
Hey guys, I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly Do you guys have any suggestions what is the best prac...
New
dli
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app? Looking for hints regarding: Addi...
New
roeland
Kia ora, We have been using elixir-google-api to connect to Google Drive. However, with the updates to Tesla due to CVEs this is now bro...
New
bottlenecked
Hi all, I wanted to ask how the community is dealing with post-release steps. Today we have Ecto migrations, which make sure that the db...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews