mix igniter.install ash_authentication_phoenix fails to compile

mix deps.get
mix ingiter.install ash
mix ingiter.install ash_postgres
mix ingiter.install ash_phoenix
mix igniter.install ash_authentication
mix ash_authentication.add_strategy password
mix ash.migrate
mix igniter.install ash_authentication_phoenix
mix deps.get
mix ingiter.install ash
mix ingiter.install ash_postgres
mix ingiter.install ash_phoenix
mix igniter.install ash_authentication
mix ash_authentication.add_strategy password
mix ash.migrate
mix igniter.install ash_authentication_phoenix
the last command fails to compile on clean repo of Tunez
Solution:
Something is strange with the last release there if you add it in your mix exs like this it should work {:ash_authentication_phoenix, "~> 2.0 and < 2.11.0"},
Jump to solution
16 Replies
Rise
RiseOP2w ago
==> ash_authentication_phoenix
Unchecked dependencies for environment prod:
* phoenix_view (Hex package)
could not find an app file at "/Users/user/code/playground/tunez/_build/dev/lib/phoenix_view/ebin/phoenix_view.app". This may happen if the dependency was not yet compiled or the dependency indeed has no app file (then you can pass app: false as option)
* slugify (Hex package)
could not find an app file at "/Users/user/code/playground/tunez/_build/dev/lib/slugify/ebin/slugify.app". This may happen if the dependency was not yet compiled or the dependency indeed has no app file (then you can pass app: false as option)
* phoenix_html_helpers (Hex package)
could not find an app file at "/Users/user/code/playground/tunez/_build/dev/lib/phoenix_html_helpers/ebin/phoenix_html_helpers.app". This may happen if the dependency was not yet compiled or the dependency indeed has no app file (then you can pass app: false as option)
* phoenix (Hex package)
could not find an app file at "/Users/user/code/playground/tunez/_build/dev/lib/phoenix/ebin/phoenix.app". This may happen if the dependency was not yet compiled or the dependency indeed has no app file (then you can pass app: false as option)
==> ash_authentication_phoenix
Unchecked dependencies for environment prod:
* phoenix_view (Hex package)
could not find an app file at "/Users/user/code/playground/tunez/_build/dev/lib/phoenix_view/ebin/phoenix_view.app". This may happen if the dependency was not yet compiled or the dependency indeed has no app file (then you can pass app: false as option)
* slugify (Hex package)
could not find an app file at "/Users/user/code/playground/tunez/_build/dev/lib/slugify/ebin/slugify.app". This may happen if the dependency was not yet compiled or the dependency indeed has no app file (then you can pass app: false as option)
* phoenix_html_helpers (Hex package)
could not find an app file at "/Users/user/code/playground/tunez/_build/dev/lib/phoenix_html_helpers/ebin/phoenix_html_helpers.app". This may happen if the dependency was not yet compiled or the dependency indeed has no app file (then you can pass app: false as option)
* phoenix (Hex package)
could not find an app file at "/Users/user/code/playground/tunez/_build/dev/lib/phoenix/ebin/phoenix.app". This may happen if the dependency was not yet compiled or the dependency indeed has no app file (then you can pass app: false as option)
* phoenix_live_view (Hex package)
could not find an app file at "/Users/user/code/playground/tunez/_build/dev/lib/phoenix_live_view/ebin/phoenix_live_view.app". This may happen if the dependency was not yet compiled or the dependency indeed has no app file (then you can pass app: false as option)
* ash_phoenix (Hex package)
could not find an app file at "/Users/user/code/playground/tunez/_build/dev/lib/ash_phoenix/ebin/ash_phoenix.app". This may happen if the dependency was not yet compiled or the dependency indeed has no app file (then you can pass app: false as option)
could not compile dependency :ash_authentication_phoenix, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile ash_authentication_phoenix --force", update it with "mix deps.update ash_authentication_phoenix" or clean it with "mix deps.clean ash_authentication_phoenix"
==> tunez
** (Mix) Can't continue due to errors on dependencies
* phoenix_live_view (Hex package)
could not find an app file at "/Users/user/code/playground/tunez/_build/dev/lib/phoenix_live_view/ebin/phoenix_live_view.app". This may happen if the dependency was not yet compiled or the dependency indeed has no app file (then you can pass app: false as option)
* ash_phoenix (Hex package)
could not find an app file at "/Users/user/code/playground/tunez/_build/dev/lib/ash_phoenix/ebin/ash_phoenix.app". This may happen if the dependency was not yet compiled or the dependency indeed has no app file (then you can pass app: false as option)
could not compile dependency :ash_authentication_phoenix, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile ash_authentication_phoenix --force", update it with "mix deps.update ash_authentication_phoenix" or clean it with "mix deps.clean ash_authentication_phoenix"
==> tunez
** (Mix) Can't continue due to errors on dependencies
Ive tried all commands that are recommended here, but all fail
ZachDaniel
ZachDaniel2w ago
Can you update all your deps?
Rise
RiseOP2w ago
I did use mix deps.update --all and mix compile worked before ash_authentication_phoenix was added. The error i get:
==> ash_authentication_phoenix
Unchecked dependencies for environment prod:
* phoenix_view (Hex package)
could not find an app file at "/Users/user/code/personal/tunez/_build/dev/lib/phoenix_view/ebin/phoenix_view.app". This may happen if the dependency was not yet compiled or the dependency indeed has no app file (then you can pass app: false as option)
* slugify (Hex package)
could not find an app file at "/Users/user/code/personal/tunez/_build/dev/lib/slugify/ebin/slugify.app". This may happen if the dependency was not yet compiled or the dependency indeed has no app file (then you can pass app: false as option)
* phoenix_html_helpers (Hex package)
could not find an app file at "/Users/user/code/personal/tunez/_build/dev/lib/phoenix_html_helpers/ebin/phoenix_html_helpers.app". This may happen if the dependency was not yet compiled or the dependency indeed has no app file (then you can pass app: false as option)
could not compile dependency :ash_authentication_phoenix, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile ash_authentication_phoenix --force", update it with "mix deps.update ash_authentication_phoenix" or clean it with "mix deps.clean ash_authentication_phoenix"
==> tunez
** (Mix) Can't continue due to errors on dependencies


(igniter 0.6.30) lib/igniter/util/install.ex:303: Igniter.Util.Install.raising_cmd!/3
(igniter 0.6.30) lib/igniter/util/install.ex:257: anonymous fn/2 in Igniter.Util.Install.get_deps!/2
(igniter 0.6.30) lib/igniter/util/loading.ex:123: Igniter.Util.Loading.do_capture_gl/2
(igniter 0.6.30) lib/igniter/util/loading.ex:116: Igniter.Util.Loading.do_with_io/3
...
==> ash_authentication_phoenix
Unchecked dependencies for environment prod:
* phoenix_view (Hex package)
could not find an app file at "/Users/user/code/personal/tunez/_build/dev/lib/phoenix_view/ebin/phoenix_view.app". This may happen if the dependency was not yet compiled or the dependency indeed has no app file (then you can pass app: false as option)
* slugify (Hex package)
could not find an app file at "/Users/user/code/personal/tunez/_build/dev/lib/slugify/ebin/slugify.app". This may happen if the dependency was not yet compiled or the dependency indeed has no app file (then you can pass app: false as option)
* phoenix_html_helpers (Hex package)
could not find an app file at "/Users/user/code/personal/tunez/_build/dev/lib/phoenix_html_helpers/ebin/phoenix_html_helpers.app". This may happen if the dependency was not yet compiled or the dependency indeed has no app file (then you can pass app: false as option)
could not compile dependency :ash_authentication_phoenix, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile ash_authentication_phoenix --force", update it with "mix deps.update ash_authentication_phoenix" or clean it with "mix deps.clean ash_authentication_phoenix"
==> tunez
** (Mix) Can't continue due to errors on dependencies


(igniter 0.6.30) lib/igniter/util/install.ex:303: Igniter.Util.Install.raising_cmd!/3
(igniter 0.6.30) lib/igniter/util/install.ex:257: anonymous fn/2 in Igniter.Util.Install.get_deps!/2
(igniter 0.6.30) lib/igniter/util/loading.ex:123: Igniter.Util.Loading.do_capture_gl/2
(igniter 0.6.30) lib/igniter/util/loading.ex:116: Igniter.Util.Loading.do_with_io/3
...
and after retrying it when it is installed i get this error:
> mix igniter.install ash_authentication_phoenix

==> ash_authentication_phoenix
could not compile dependency :ash_authentication_phoenix, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile ash_authentication_phoenix --force", update it with "mix deps.update ash_authentication_phoenix" or clean it with "mix deps.clean ash_authentication_phoenix"
==> tunez
** (Mix) The task "compile.phoenix_live_view" could not be found. Did you mean "compile.phoenix"?
> mix igniter.install ash_authentication_phoenix

==> ash_authentication_phoenix
could not compile dependency :ash_authentication_phoenix, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile ash_authentication_phoenix --force", update it with "mix deps.update ash_authentication_phoenix" or clean it with "mix deps.clean ash_authentication_phoenix"
==> tunez
** (Mix) The task "compile.phoenix_live_view" could not be found. Did you mean "compile.phoenix"?
barnabasj
barnabasj2w ago
have you tried rm -rf _build ?
Rise
RiseOP2w ago
yes, but then i get this
Generated ash_phoenix app
==> ash_authentication_phoenix
Unchecked dependencies for environment prod:
* phoenix_view (Hex package)
the dependency build is outdated, please run "MIX_ENV=prod mix deps.compile"
* slugify (Hex package)
the dependency build is outdated, please run "MIX_ENV=prod mix deps.compile"
* phoenix_html_helpers (Hex package)
the dependency build is outdated, please run "MIX_ENV=prod mix deps.compile"
* phoenix (Hex package)
the dependency build is outdated, please run "MIX_ENV=prod mix deps.compile"
* phoenix_live_view (Hex package)
the dependency build is outdated, please run "MIX_ENV=prod mix deps.compile"
* ash_phoenix (Hex package)
the dependency build is outdated, please run "MIX_ENV=prod mix deps.compile"
could not compile dependency :ash_authentication_phoenix, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile ash_authentication_phoenix --force", update it with "mix deps.update ash_authentication_phoenix" or clean it with "mix deps.clean ash_authentication_phoenix"
Generated ash_phoenix app
==> ash_authentication_phoenix
Unchecked dependencies for environment prod:
* phoenix_view (Hex package)
the dependency build is outdated, please run "MIX_ENV=prod mix deps.compile"
* slugify (Hex package)
the dependency build is outdated, please run "MIX_ENV=prod mix deps.compile"
* phoenix_html_helpers (Hex package)
the dependency build is outdated, please run "MIX_ENV=prod mix deps.compile"
* phoenix (Hex package)
the dependency build is outdated, please run "MIX_ENV=prod mix deps.compile"
* phoenix_live_view (Hex package)
the dependency build is outdated, please run "MIX_ENV=prod mix deps.compile"
* ash_phoenix (Hex package)
the dependency build is outdated, please run "MIX_ENV=prod mix deps.compile"
could not compile dependency :ash_authentication_phoenix, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile ash_authentication_phoenix --force", update it with "mix deps.update ash_authentication_phoenix" or clean it with "mix deps.clean ash_authentication_phoenix"
I am not really getting why it wants to compile prod and if i compile it with prod all deps are outdated
ash_phoenix (Hex package)
the dependency build is outdated, please run "MIX_ENV=prod mix deps.compile"
...
ash_phoenix (Hex package)
the dependency build is outdated, please run "MIX_ENV=prod mix deps.compile"
...
absinthe 1.7.10
absinthe_phoenix 2.0.3
absinthe_plug 1.5.9
ash 3.5.43
ash_authentication 4.11.0
ash_authentication_phoenix 2.11.0
ash_graphql 1.8.3
ash_json_api 1.4.45
ash_phoenix 2.3.16
ash_postgres 2.6.20
ash_sql 0.3.0
assent 0.2.13
bandit 1.8.0
bcrypt_elixir 3.3.2
bunt 1.0.0
castore 1.0.15
comeonin 5.5.1
conv_case 0.2.3
credo 1.7.12
db_connection 2.8.1
decimal 2.3.0
dns_cluster 0.2.0
ecto 3.13.3
ecto_sql 3.13.2
elixir_make 0.9.0
esbuild 0.10.0
ets 0.9.0
expo 1.1.0
file_system 1.1.1
finch 0.20.0
floki 0.37.1
gettext 0.26.2
glob_ex 0.1.11
hpax 1.0.3
idna 6.1.1
igniter 0.6.30
iterex 0.1.2
jason 1.4.4
joken 2.6.2
jose 1.11.10
json_xema 0.6.5
libgraph 0.16.0
mime 2.0.7
mint 1.7.1
nimble_options 1.1.1
nimble_parsec 1.4.2
nimble_pool 1.1.0
open_api_spex 3.22.0
owl 0.13.0
phoenix 1.8.1
phoenix_ecto 4.6.5
phoenix_html 4.3.0
phoenix_html_helpers 1.0.1
phoenix_live_dashboard 0.8.7
phoenix_live_reload 1.6.1
phoenix_live_view 1.0.18
phoenix_pubsub 2.1.3
phoenix_template 1.0.4
phoenix_test 0.7.1
phoenix_view 2.0.4
picosat_elixir 0.2.3
plug 1.18.1
plug_crypto 2.1.1
postgrex 0.21.1
reactor 0.17.0
redoc_ui_plug 0.2.1
req 0.5.15
rewrite 1.1.2
slugify 1.3.1
sourceror 1.10.0
spark 2.3.5
spitfire 0.2.1
splode 0.2.9
stream_data 1.2.0
swoosh 1.19.8
tailwind 0.4.0
telemetry 1.3.0
telemetry_metrics 1.1.0
telemetry_poller 1.3.0
text_diff 0.1.0
thousand_island 1.4.1
unicode_util_compat 0.7.1
websock 0.5.3
websock_adapter 0.5.8
xema 0.17.5
yamerl 0.10.0
yaml_elixir 2.12.0
ymlr 5.1.4
absinthe 1.7.10
absinthe_phoenix 2.0.3
absinthe_plug 1.5.9
ash 3.5.43
ash_authentication 4.11.0
ash_authentication_phoenix 2.11.0
ash_graphql 1.8.3
ash_json_api 1.4.45
ash_phoenix 2.3.16
ash_postgres 2.6.20
ash_sql 0.3.0
assent 0.2.13
bandit 1.8.0
bcrypt_elixir 3.3.2
bunt 1.0.0
castore 1.0.15
comeonin 5.5.1
conv_case 0.2.3
credo 1.7.12
db_connection 2.8.1
decimal 2.3.0
dns_cluster 0.2.0
ecto 3.13.3
ecto_sql 3.13.2
elixir_make 0.9.0
esbuild 0.10.0
ets 0.9.0
expo 1.1.0
file_system 1.1.1
finch 0.20.0
floki 0.37.1
gettext 0.26.2
glob_ex 0.1.11
hpax 1.0.3
idna 6.1.1
igniter 0.6.30
iterex 0.1.2
jason 1.4.4
joken 2.6.2
jose 1.11.10
json_xema 0.6.5
libgraph 0.16.0
mime 2.0.7
mint 1.7.1
nimble_options 1.1.1
nimble_parsec 1.4.2
nimble_pool 1.1.0
open_api_spex 3.22.0
owl 0.13.0
phoenix 1.8.1
phoenix_ecto 4.6.5
phoenix_html 4.3.0
phoenix_html_helpers 1.0.1
phoenix_live_dashboard 0.8.7
phoenix_live_reload 1.6.1
phoenix_live_view 1.0.18
phoenix_pubsub 2.1.3
phoenix_template 1.0.4
phoenix_test 0.7.1
phoenix_view 2.0.4
picosat_elixir 0.2.3
plug 1.18.1
plug_crypto 2.1.1
postgrex 0.21.1
reactor 0.17.0
redoc_ui_plug 0.2.1
req 0.5.15
rewrite 1.1.2
slugify 1.3.1
sourceror 1.10.0
spark 2.3.5
spitfire 0.2.1
splode 0.2.9
stream_data 1.2.0
swoosh 1.19.8
tailwind 0.4.0
telemetry 1.3.0
telemetry_metrics 1.1.0
telemetry_poller 1.3.0
text_diff 0.1.0
thousand_island 1.4.1
unicode_util_compat 0.7.1
websock 0.5.3
websock_adapter 0.5.8
xema 0.17.5
yamerl 0.10.0
yaml_elixir 2.12.0
ymlr 5.1.4
This are my deps
barnabasj
barnabasj2w ago
I'm trying to reproduce with a build from ash-hq in the meantime maybe one more thing to try would be rm -rf _build deps && mix deps.get
Rise
RiseOP2w ago
i tried both. I used base tunez repo and i have elixir 1.18.2-opt27
barnabasj
barnabasj2w ago
did you go off of a particular branch? you have a lot more than just the deps from main mix deps.update --all might also be worth a try
Rise
RiseOP2w ago
main and then execute the commands that i wrote at the start so ash, ash_postgres,ash_json, ash_graphql and ash_authentication where installed so using this should lead to the same issue with the repo as base
Solution
barnabasj
barnabasj2w ago
Something is strange with the last release there if you add it in your mix exs like this it should work {:ash_authentication_phoenix, "~> 2.0 and < 2.11.0"},
Rise
RiseOP2w ago
yes that works, Thank you very much! Really appreachiate it ❤️
barnabasj
barnabasj2w ago
you can run the install again after, it will ask you if you want to change the version or not, or just run mix ash_authentication_phoenix.install
Rise
RiseOP2w ago
yes that worked. Should I open an issue in ash_authentication_phoenix for this or do you think this will get ironed out next release
barnabasj
barnabasj2w ago
issue is appreciate, it should be fixed with the next release. but it helps in tracking it
Rise
RiseOP2w ago
GitHub
v2.11.0 - mix igniter.install ash_authentication_phoenix fails to c...
The following command where run: git clone https://github.com/sevenseacat/tunez.git cd tunez mix deps.get mix ingiter.install ash mix ingiter.install ash_postgres mix ingiter.install ash_phoenix mi...
jart
jart2w ago
Thanks for the report. I'm trying to figure out what I've done wrong. There's just not that many changes to AAP between 2.10 and 2.11.

Did you find this page helpful?