Skip to content

Conversation

DaliborHorinek
Copy link
Contributor

@DaliborHorinek DaliborHorinek commented Apr 26, 2022

Use mix formatter for formatting source file instead of Code.format_string! so it can support plugins in formatters.

Fix #660

@axelson
Copy link
Member

axelson commented May 2, 2022

Thanks for this! It seems to work in a quick test, after playing with it some more I plan to merge it.

* Use formatter_for_file instead of formatter_opts_for_file which is
  deprecated now

* Fallback to original Code.format_string!
@DaliborHorinek
Copy link
Contributor Author

I'll tried to make it backwards compatible with Elixir 1.12 and lower. This is how i tried, not sure if it's the best approach, but it seems to work.

@DaliborHorinek
Copy link
Contributor Author

@lukaszsamson Thank you for you review, just a quick question.
What is needed to merge this?
If there is anything I can do, please let me know :)

@megalithic
Copy link

Thanks so much for tackling this @DaliborHorinek! This is such an exciting addition to support so much tooling.

@marcandre
Copy link

This is great news. Any hope of getting a release soon?

@marcandre
Copy link

@lukaszsamson Can I or anyone help to get a release for this feature?

@axelson
Copy link
Member

axelson commented Aug 15, 2022

@marcandre FYI this was released as part of the v0.11.0 release today.

@marcandre
Copy link

Great, thanks @axelson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Support mix format plugins
6 participants