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
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
Please install the latest archive of igniter_new to resolve the issue:
mix archive.install hex igniter_new
zachdaniel
akramic
Last Post!
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 ![]()
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #hex









