Getting this error trying to get set up with the new Ash book:
$ mix igniter.install ash_postgres
checking for igniter in project ✔
compiling igniter ✔
setting up igniter ✔
** (UndefinedFunctionError) function :http_util.timestamp/0 is undefined (module :http_util is not available)
(inets 9.3) :http_util.timestamp()
(inets 9.3) httpc.erl:1151: :httpc.handle_request/9
(igniter 0.5.8) lib/igniter/project/deps.ex:276: Igniter.Project.Deps.determine_dep_type_and_version/1
(igniter 0.5.8) lib/igniter/util/install.ex:29: anonymous fn/1 in Igniter.Util.Install.install/4
(elixir 1.18.1) lib/enum.ex:1714: Enum."-map/2-lists^map/1-1-"/2
(igniter 0.5.8) lib/igniter/util/install.ex:28: Igniter.Util.Install.install/4
(mix 1.18.1) lib/mix/task.ex:495: anonymous fn/3 in Mix.Task.run_task/5
(mix 1.18.1) lib/mix/cli.ex:107: Mix.CLI.run_task/2
Looks like a commit from two days ago might be the culprit.
committed 10:57PM - 20 Jan 25 UTC
Editing deps in mix.exs
to {:igniter, "~> 0.5.15"}
seems to have fixed the error.
1 Like
That code you showed shouldn’t present in the newest versions of igniter, can you confirm that?
which code? do you mean the error message? if so, the newest version does not show that error. the project from the book had version ~> 0.3
in mix.exs.
1 Like
Ah, okay gotcha. @sevenseacat we should upgrade igniter in the example app In fact we should make sure all the deps are on the latest.
I had opened this issue on the github repo:
opened 09:29PM - 22 Jan 25 UTC
ran into an issue with installing ash_postgres that was resolved by editing mix.… exs to use the most recent version of igniter.
```
$ mix igniter.install ash_postgres
checking for igniter in project ✔
compiling igniter ✔
setting up igniter ✔
** (UndefinedFunctionError) function :http_util.timestamp/0 is undefined (module :http_util is not available)
(inets 9.3) :http_util.timestamp()
(inets 9.3) httpc.erl:1151: :httpc.handle_request/9
(igniter 0.5.8) lib/igniter/project/deps.ex:276: Igniter.Project.Deps.determine_dep_type_and_version/1
(igniter 0.5.8) lib/igniter/util/install.ex:29: anonymous fn/1 in Igniter.Util.Install.install/4
(elixir 1.18.1) lib/enum.ex:1714: Enum."-map/2-lists^map/1-1-"/2
(igniter 0.5.8) lib/igniter/util/install.ex:28: Igniter.Util.Install.install/4
(mix 1.18.1) lib/mix/task.ex:495: anonymous fn/3 in Mix.Task.run_task/5
(mix 1.18.1) lib/mix/cli.ex:107: Mix.CLI.run_task/2
```
Fixed by editing deps in mix.exs to `{:igniter, "~> 0.5.15"}`.
2 Likes
I did update all the deps three or four days ago when I pushed the changes for chapter 7, but that would have missed the commit from two days ago. I’ll go through and verify
edit: oops Igniter wasn’t one of them, it was still on 0.5.8. Will fix!
2 Likes
Pushed a fix for that to main, so any new readers/forkers will have the latest version of Igniter (0.5.16) from the get-go!
3 Likes