Skip to content

Error when installing with Igniter - Igniter.Project.Application.app_name/0 is undefined #362

Open
@sevenseacat

Description

@sevenseacat

Describe the bug
I've set up a new Phoenix app to test out Igniter setup, and run into an issue with AshPostgres.

==> phoenix_ecto
Compiling 7 files (.ex)
** (UndefinedFunctionError) function Igniter.Project.Application.app_name/0 is undefined (module Igniter.Project.Application is not available)
    (igniter 0.3.9) Igniter.Project.Application.app_name()
    (ash_postgres 2.1.15) lib/mix/tasks/ash_postgres.install.ex:10: Mix.Tasks.AshPostgres.Install.igniter/2
    (elixir 1.17.2) lib/enum.ex:2531: Enum."-reduce/3-lists^foldl/2-0-"/3
    (igniter 0.3.9) lib/igniter/util/install.ex:101: Igniter.Util.Install.run_installers/5

Upon re-running ash_postgres.install, the error does not appear, and everything works as normal?

To Reproduce

  • Generate a new Phoenix app (using mix phx.new) - generates a 1.7.14 app
  • Install Igniter (latest version is 0.3.9)
  • Run mix igniter.install ash (installs 3.2.6)
  • Run mix igniter.install ash_postgres (installs 2.1.15)

The library installs successfully, but the error occurs when it runs ash_postgres.install.

Expected behavior

ash_postgres.install should run successfully and patch my repo etc. files.

** Runtime

  • Elixir version 1.17.2-otp-27
  • Erlang version 27.0.1
  • OS macOS Sonoma
  • Ash version 3.2.6
  • Igniter version 0.3.9
  • AshPostgres version 2.1.15

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions