I think we should add this in, actually. The formatter is part of mix. If
there's a way to either auto-create, warn, or tell the user what to do to
create the formatter, that would be great.

I think using the method suggested by Wojtek is a bit too much for
newcomers, or even may make elixir sound not so great if the solution is to
create a new project and copy and paste the formatter file then remove the
newly created project.

On Sun, Dec 13, 2020 at 7:50 PM Wojtek Mach <[email protected]> wrote:

> I am slightly -1 given, as you mentioned, you can very easily achieve it
> today:
>
> cd /path/to/project && mix new foo && mv foo/.formatter.exs . && rm -rf foo
>
>
>
> > On 13 Dec 2020, at 12:30, eksperimental <[email protected]>
> wrote:
> >
> > It happens that when I want to update a project that has been created
> > with an Elixir version prior to the introduction of the formatter,
> > I need to manually copy a .formatter.exs file. So I need to create a
> > new project and copy this file manually.
> >
> > What I propose is to add an option called --create-formatter-file which
> > will create .formatter.exs only if this file does not exist.
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "elixir-lang-core" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected].
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-core/5fd5fb46.1c69fb81.8380c.8e31SMTPIN_ADDED_MISSING%40gmr-mx.google.com
> .
>
> --
> You received this message because you are subscribed to the Google Groups
> "elixir-lang-core" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-core/22C0A984-F965-4431-A02B-ADA42FE0E1E5%40wojtekmach.pl
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/CAJuWSyJQJwg03un%3DhduB4N1TVqZ_sa0HAFETidBsWMZGGa9tkQ%40mail.gmail.com.

Reply via email to