-
Notifications
You must be signed in to change notification settings - Fork 93
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
.formatter.exs not used #421
Comments
Thanks for reporting this! It sure sounds like a bug. I'll investigate on the code side. Meanwhile, can you tell me what happens if you remove your hook for elixir format and just run the function without any additional configuration? |
Hi Trevor, the problem persists with plain |
I believe So when run
What options do we have?
|
kerl and kiex are not officially supported as a way to manage the installed Elixir and Erlang versions. Fixes elixir-editors#414
I'm having this weird problem where
elixir-format
doesn't respect the.formatter.exs
file in my project's root directory when I follow the settings here.How to reproduce:
mix new
a project and change the generated.formatter.exs
to bewhich should not format anything. Assume the project is located at
~/Projects/test
.Mess with the format of
mix.exs
in some way, and runmix format
from the project root directory manually to confirm thatmix.exs
doesn't get formatted.Now open
mix.exs
with Emacs, enableprojectile-mode
, and runelixir-format
. This timemix.exs
does get formatted, although the value ofelixir-format-arguments
is shown to be("--dot-formatter" "~/Projects/test/.formatter.exs")
.My
elixir-mode
settings:No matter what I do, the file always gets formatted when I run
elixir-format
. I'm not sure whether I'm configuring things incorrectly or hitting a bug.The text was updated successfully, but these errors were encountered: