nix2intel

nix2intel

Compiling igniter ** (Mix) Can't continue due to errors on dependencies

i’m using the new ash installer and i’m getting an error right after compiling igniter

  • running mix deps.compile

We are almost there! The following steps are missing:

$ cd test

Then configure your database in config/dev.exs and run:

$ mix ecto.create

Start your Phoenix app with:

$ mix phx.server

You can also run your app inside IEx (Interactive Elixir) as:

$ iex -S mix phx.server

installing igniter :check_mark:
compiling igniter ⢽
compiling igniter :check_mark:
** (Mix) Can’t continue due to errors on dependencies

how can I get it to work, it looks like ash isn’t in the dependencies for the application in mix.exs, any help would be appreciated.

Marked As Solved

nix2intel

nix2intel

what if I were to tell you that it was a space in the name with a certain length? When I do

sh <(curl 'https://ash-hq.org/new/hairbnb?install=phoenix') \
    && cd hairbnb \
      && mix igniter.install \
    ash_phoenix ash_json_api ash_postgres ash_authentication \
    ash_authentication_phoenix ash_admin ash_state_machine \
    ash_paper_trail cloak ash_cloak \
    --auth-strategy password \
      --yes

The above works, but the below will fail.

sh <(curl 'https://ash-hq.org/new/some_long_name_with_spaces?install=phoenix') \
    && cd some_long_name_with_spaces \
      && mix igniter.install \
    ash_phoenix ash_json_api ash_postgres ash_authentication \
    ash_authentication_phoenix ash_admin ash_state_machine ash_paper_trail cloak \
    ash_cloak \
    --auth-strategy password \
      --yes

I get the error that

Issues:

  • ** (Rewrite.SourceError) could not write to file “lib/some_long_name_with_spaces/application.ex”: file changed since reading

i’ll pull that down, connect, and get you a copy of that debug.

Also Liked

zachdaniel

zachdaniel

Creator of Ash

Wowee, that was a rabbit hole :laughing: Fixed versions are released. Here is what was happening:

Duplicate files were being added into the rewrite struct, due to how in some places (when adding a glob), we were adding files by absolute path, instead of relative to CWD path.

The kicker is how we were alerted to this problem :sweat: The reason that it only happened when the app name was longer is because rewrite uses Task.async_stream to write files in parallel. Inside of that stream each thing reads its original contents and then writes it if it hasn’t changed. The slight additional extra time that it took to either read the file or hash the file name (not sure which) for the longer file names, changed the performance of the writing enough that one of the tasks was slow enough to see the new file contents from one of the other tasks completing and writing its file contents. Now there are no duplicates because everything is using relative paths.

This could also have been the source of other subtle bugs :sob:

Thank you for your help in figuring this one out!

nix2intel

nix2intel

This is on an arm linux box (asahi linux) the plot thickens :slight_smile:

nix2intel

nix2intel

I know this is a plea for help but this is really cool i’ll add!

Where Next?

Popular in Questions Top

siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
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
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
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
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
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
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New

Other popular topics Top

danschultzer
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch. This project took far...
548 29377 241
New
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
Nvim
Anybody knows a comprehensive comparison of Django and Phoenix, thanks for the help. Where are they similar? Where do they differ the m...
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
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
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
Qqwy
Update: How to use the Blogs &amp; Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3271 126479 1222
New
AstonJ
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New

We're in Beta

About us Mission Statement