iyjim

iyjim

Igniter 0.5.1 fail: (UndefinedFunctionError) function Installer.Lib.Private.SharedUtils.install/1 is undefined or private

The new release of Igniter might fail, since this issue was just happened to me:
(I’d like to upload an image, but I’m a new user)

asdf@897471af8b62:/tmp$ mix igniter.new toy_bank --install ash --extend ets
* creating README.md
* creating .formatter.exs
* creating .gitignore
* creating mix.exs
* creating lib
* creating lib/toy_bank.ex
* creating test
* creating test/test_helper.exs
* creating test/toy_bank_test.exs

Your Mix project was created successfully.
You can use "mix" to compile it, test it, and more:

    cd toy_bank
    mix test

Run "mix help" for more commands.
** (UndefinedFunctionError) function Installer.Lib.Private.SharedUtils.install/1 is undefined or private
    (igniter 0.5.1) Installer.Lib.Private.SharedUtils.install(["ash", "--extend", "ets"])
    (mix 1.17.3) lib/mix/task.ex:495: anonymous fn/3 in Mix.Task.run_task/5
    lib/mix/tasks/igniter.new.ex:202: Mix.Tasks.Igniter.New.run/1
    (mix 1.17.3) lib/mix/task.ex:495: anonymous fn/3 in Mix.Task.run_task/5
    (mix 1.17.3) lib/mix/cli.ex:96: Mix.CLI.run_task/2
    /home/asdf/.asdf/installs/elixir/1.17.3-otp-27/bin/mix:2: (file)
asdf@897471af8b62:/tmp$ asdf list
elixir
 *1.17.3-otp-27
erlang
 *27.1.2
nodejs
 *23.1.0
asdf@897471af8b62:/tmp$ 

Actually, I tried many erlang/elixir versions, and all fail.

Is there a way to use previous version of Igniter? I did not find a way to do so in this forum.

Please help.

Marked As Solved

zachdaniel

zachdaniel

Creator of Ash

Hey folks, I’ve updated both the installer archive and igniter itself. Please update both (or just the installer if you don’t have a project using igniter yet) and try again.

This means updating the archive:

mix archive.install hex igniter_new

and the dep for any projects that have igniter in it

mix deps.update igniter

Also Liked

zachdaniel

zachdaniel

Creator of Ash

Please install the latest archive of igniter_new to resolve the issue:

mix archive.install hex igniter_new 
zachdaniel

zachdaniel

Creator of Ash

Yeah, there are a few things wrong with ar recent release. I’m working through them now.

akramic

akramic

:pray: Thank you!.

I can report that it now works like a charm! :smiley:

Last Post!

lud

lud

@zachdaniel hello,

I have the same error on a custom mix task installed with mix archive.install. If the task calls other modules after I asked Mix to load a project or ran “app.config”, then the code of all modules from my mix task cannot be found.

I guess Mix completely redefines the loadable ebin paths. There is a workaround where I can just force load the modules of my task by calling .module_info() on them but it’s a hack.

It seems that you found a solution for this problem. Did you run into the same problem or was it something else? If yes, can you tell me how it is solved in Igniter when installed globally as an archive?

Thank you :slight_smile:

Where Next?

Popular in Questions Top

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
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
Lily
In templates/appointment/index.html.eex: <%= for appointment <- @appointments do %> <tr> <td><%= appoi...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
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
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

Other popular topics Top

Qqwy
Update: How to use the Blogs & Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3271 130286 1222
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
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 54006 488
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
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
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

We're in Beta

About us Mission Statement