sangeethailango

sangeethailango

Mix ash.codegen is giving error: Mix.Project.deps_tree/0 is undefined or private

Hello, fellow learners.

I am learning the Ash framework. As a part of my learning journey, I have set up an elixir project with Ash as a dependency. I Have implemented the CRUD operations using the mix ash_phoenix.gen.live command. However, When attempting to update a record I encounter the following error.

function ash_raise_error(jsonb, uuid) does not exist at character 268.

To tackle the issue, I tried to run the below command.

mix ash.codegen ps_resource

But it throws the following error.

** (UndefinedFunctionError) function Mix.Project.deps_tree/0 is undefined or private. Did you mean:

  * deps_path/0
  * deps_path/1   

For context, here are the versions of the dependencies I’m using:

  • {:ash, “~> 3.0.1”},
  • {:ash_postgres, “~> 2.0.1”},
  • {:ash_phoenix, “~> 2.0.0”},
  • {:spark, “~> 2.1.22”}
  • {elixir: “~> 1.14”}

I have attempted to clean and update the dependencies. But still, the issue persists

My primary goal is to ensure the update feature is working as expected.

could anyone please help me to solve this issue?

Most Liked

03juan

03juan

Welcome to the forum!

Is there a specific reason you’re using an older Elixir release?

Mix.Project.deps_tree/0 is available from Elixir v1.15

If you’re learning Ash from scratch I’d recommend you install the latest Elixir v1.16.3 with Erlang OTP 26 to have the most current system. Let me know if you need any help using a version manager like asdf

Edit: raised issue on Ash repo Mix feature version mismatch · Issue #1197 · ash-project/ash · GitHub

zachdaniel

zachdaniel

Creator of Ash

Fixed! We now use a slower alternative in older elixir versions, and supply a warning.

sangeethailango

sangeethailango

Thank you Juan P Barrios for replying.

No, I don’t have any specific reason for using the older version.

Now the update feature is working after Changing the Elixir version to the newer. I Will use Elixir’s new version for learning Ash. Thanks.

Where Next?

Popular in Questions Top

baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
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
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

Other popular topics Top

hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a > b) do {:ok, "a"} end if (a < b) do {:ok, b} end if (a == b) do {:ok, "equa...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
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 52673 488
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
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
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

Latest on Elixir Forum

Elixir Forum

We're in Beta

About us Mission Statement