ash-project / igniter

A code generation and project patching framework.
https://hexdocs.pm/igniter/readme.html
MIT License
179 stars 21 forks source link

No sub formatter found in 0.4.5+ #154

Open nathany-copia opened 6 hours ago

nathany-copia commented 6 hours ago

Describe the bug

Upgrading from Igniter 0.4.4 to 0.4.5 or 0.4.7 results in this error for the use Igniter.Mix.Task line in my mix task.

** (Rewrite.DotFormatterError) No sub formatter found in "priv/*/data_migrations"
    (rewrite 1.1.0) lib/rewrite/dot_formatter.ex:133: Rewrite.DotFormatter.read!/2
    (igniter 0.4.5) lib/igniter.ex:109: Igniter.new/0
    (copia 0.0.1) lib/mix/tasks/datafeed.gen.ex:11: Mix.Tasks.Datafeed.Gen.run/1
    (mix 1.17.3) lib/mix/task.ex:495: anonymous fn/3 in Mix.Task.run_task/5
    (mix 1.17.3) lib/mix/cli.ex:96: Mix.CLI.run_task/2
    /opt/homebrew/bin/mix:2: (file)

To Reproduce

I'm not sure what you would need. Does the existence of exs files in the priv/repo/data_migrations folder trigger this?

Expected behavior

Continue to work as in 0.4.4.

** Runtime

❯ elixir -v
Erlang/OTP 27 [erts-15.1.2] [source] [64-bit] [smp:10:10] [ds:10:10:10] [async-threads:1] [jit] [dtrace]

Elixir 1.17.3 (compiled with Erlang/OTP 26)

Additional context

zachallaun commented 6 hours ago

@NickNeck Any ideas on this?