-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No sub formatter found in 0.4.5+ #154
Comments
@NickNeck Any ideas on this? |
@nathany-copia it looks like that your Could you check this with: find . -name .formatter.exs -not -path "./deps*" For one of my projects I get:
Edit: Elixir's formatter does the same thing, but does not throw an error. I will check to see if |
One more thing. |
@NickNeck So to solve this, we should bump rewrite to 1.1.1 and use the new ignore_sub_formatters option everywhere we read a dotformatter? |
(Not back yet) I think we want to ensure we write subformatters before the parent formatter, or we want to make sure that subformatters are only ignored when not present. Is that what the ignore subformatters option does? |
@zachdaniel with the |
+1 one on this issue. Is the solution to create the .formatter file? I don t recall it needed in the migrations but maybe something that was added later on in Phx? |
Sounds like the new option is the way 👍 |
@epinault creating the missing The $> cat .formatter.exs
[
import_deps: [:ecto, :ecto_sql, :phoenix],
subdirectories: ["priv/*/migrations"],
plugins: [Phoenix.LiveView.HTMLFormatter],
inputs: ["*.{heex,ex,exs}", "{config,lib,test}/**/*.{heex,ex,exs}", "priv/*/seeds.exs"]
]
$> cat priv/repo/migrations/.formatter.exs
[
import_deps: [:ecto_sql],
inputs: ["*.exs"]
] |
@zachdaniel I think the new |
Thanks for this. @zachdaniel Sorry I missed the notification for your earlier message. I see the same thing you did:
|
But the error message says |
I'm not really sure what the original root cause for the issue is, but it shouldn't matter any more right? igniter will do the right thing regardless w/ the new option from rewrite. |
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.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
Additional context
The text was updated successfully, but these errors were encountered: