stevensonmt

stevensonmt

Error with igniter.install ash_postgres

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.

Editing deps in mix.exs to {:igniter, "~> 0.5.15"} seems to have fixed the error.

Most Liked

sevenseacat

sevenseacat

Author of Ash Framework

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!

stevensonmt

stevensonmt

I had opened this issue on the github repo:

sevenseacat

sevenseacat

Author of Ash Framework

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 :slight_smile:

edit: oops Igniter wasn’t one of them, it was still on 0.5.8. Will fix!

stevensonmt

stevensonmt

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.

Where Next?

Popular in Questions Top

Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
shahryarjb
Hello, I get Persian date from my client and convert it to normal calendar like this: def jalali_string_to_miladi_english_number(persi...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
Phillipp
Hey, I have a NanoPi-M3 and try to install Elixir on their Ubuntu image. I followed the Raspberry Pi installation instructions from the ...
New
qwerescape
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
Fl4m3Ph03n1x
Background Let’s assume I have a typical GenServer that receives messages as requests, does some operation in a DB and returns responses....
New
mathew4509
I have a list say x = ["23gh", "56kh", "97mh"] I would like to pass each element to Val in each iteration. Say, in iteration 1 -------...
New
sabri
Can someone explain the settings of pool_size of Ecto in config file? and what is the recommend size? Thanks
New
lucidguppy
I have a super simple question about elixir - how would I take a file like this foo bar baz and output a new file that enumerates th...
New
jc00ke
Expanding on this topic: https://forum.elixirforum.net/t/map-typespec-question/19217 Let’s say I have a map with required and optional k...
New

Other popular topics Top

JDanielMartinez
Hi! May someone helps me, please! I have two apps into an umbrella project: the first one is Database, which manages queries, and the se...
New
shahryarjb
Hello, I get Persian date from my client and convert it to normal calendar like this: def jalali_string_to_miladi_english_number(persi...
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
977 41022 311
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
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
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
johnnyicon
Hi all, I've just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I'm trying to use Postg...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New

We're in Beta

About us Mission Statement