iyjim

iyjim

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.

First 10 of 12 Posts Switch mode

zachdaniel

zachdaniel

Creator of Ash

Looking into this now.

zachdaniel

zachdaniel

Creator of Ash

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

mix archive.install hex igniter_new 
iyjim

iyjim OP

Great! It works now, thanks a lot!

benbot

benbot

I’m running into this issue as well, but installing the latest igniter_new does not help :sweat_smile:

benbot

benbot

Oh, actually it’s a slightly different error

function Installer.Lib.Private.SharedUtils.igniter_version/0 is undefined (module Installer.Lib.Private.SharedUtils is not available)

zachdaniel

zachdaniel

Creator of Ash

You should also mix deps.update igniter in your projects. In addition, double check that you’ve truly updated your archive. If you are using something my like asdf, mix archives are installed per elixir version, meaning that your igniter_new version can change depending on your directory.

akramic

akramic

I’m also having a similar issue. Carried out the above command - which installs version 0.5.2.

Then used the command

mix igniter.new helpdesk \
  --install ash,ash_postgres,ash_phoenix \
  --with phx.new \
  --extend postgres \
  --example

Get the error

Failed to add igniter to mix.exs. Please add it manually and try again

For more information, see: https://hexdocs.pm/igniter/readme.html#installation

I saw your webcast with Peter Ullrich which prompted me to try Ash - I think the concept of completely separating the business layer is awesome - reminded me of Prag Dave’s philosophy expounded in his course.

Appreciate the huge efforts you’ve put in to implement all this and make it freely available to the community.

akramic

akramic

Running

helpdesk mix igniter.install ash,ash_postgres,ash_phoenix 

gives the error

** (UndefinedFunctionError) function Installer.Lib.Private.SharedUtils.igniter_version/0 is undefined (module Installer.Lib.Private.SharedUtils is not available)
    (igniter 0.5.2) Installer.Lib.Private.SharedUtils.igniter_version()
    (igniter 0.5.2) lib/mix/tasks/igniter.install.ex:86: Mix.Tasks.Igniter.Install.add_igniter_dep/1
    (igniter 0.5.2) lib/mix/tasks/igniter.install.ex:37: Mix.Tasks.Igniter.Install.run/1
    (mix 1.17.1) lib/mix/task.ex:495: anonymous fn/3 in Mix.Task.run_task/5
    (mix 1.17.1) lib/mix/cli.ex:96: Mix.CLI.run_task/2

zachdaniel

zachdaniel

Creator of Ash

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

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

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
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
rahultumpala
Hello, I have an Elixir backend that implements a custom protocol over TCP. I want to load test the backend and assess the performance o...
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
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
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
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
juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New

We're in Beta

About us Mission Statement