Windows has problems PendingCodegen after `ash.setup`
Hi in mac os i have no problem. in windows when My colleague clone the project and fresh install (after create db and migrate all migrations) , it gets this error in my phoenix project! (without any new changes) or changing anu resource code!
I even again clone the project in my system (which mac os) and i have no problem !
By the way in windows if we run
mix ash.codegen --dev
it creates some file and if run ash.setup
it shows error it is already exist
Ash last version
Postgres version: psql (PostgreSQL) 16.10
windows 11
in mac os i can see when i start server and run a page in my log
By the way Ash uses picosat_elixir
and windows has problem with it log after install all packages like c++ tools for build and let us to compile it:
https://gist.github.com/MonaAghili/7893e23fee6a4e2769129ba9cfc2b807
By the way in windows if we mix ash.codegen
it rebuilds existing resources
Solution:Jump to solution
I just honestly don't think I have the bandwidth to support windows at this point, someone else will have to figure out this strangeness
15 Replies
So,
mix ash.codegen --dev
by design means that when you run mix ash.codegen name
it will regenerate. That is by design.
So when you get that error, if you run mix ash.codegen --dev --check
what do you see?Assuming that all the migrations are correctly created and are present in the repo, running
mix ash.codegen
again will regenerate several resources that already have migrations.
I encounter an error when I clone the project from GitHub, fetch the dependencies, and then run:
Even the seed data gets inserted into the database correctly.
Then I start the server with:
At this point, some queries are also executed successfully — until I open a page on the Phoenix site, and then the above-mentioned error appears.Can you run the command I showed once that happens?
Add the dry run flag
you mean this?
Yes
Does it show any changes?
No,
and did not create any files or changed
Why does windows have to be this way
😢
😂 i even see the psql and it has tabels

Can you not use WSL instead
she is using power shell
I figured that, but WSL would make these problems entirely go away
Solution
I just honestly don't think I have the bandwidth to support windows at this point, someone else will have to figure out this strangeness