Skip to content
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

mix-format not work. #291

Open
zw963 opened this issue Mar 11, 2024 · 1 comment
Open

mix-format not work. #291

zw963 opened this issue Mar 11, 2024 · 1 comment

Comments

@zw963
Copy link
Contributor

zw963 commented Mar 11, 2024

Hi, i am new to Elixir, my apheleia config work for several modes, e.g. Crystal mode.
but, it not work when i enable a Elixir .exs file.

I try set the (setq apheleia-log-only-errors nil) to check the log, but it's seem like no any log output when save buffer.

If i add following config, the formatter work well.

(setf (alist-get 'mix-format apheleia-formatters)
      '("mix" "format" filepath))

The log output correctly for now.

Mon Mar 11 23:46:32 2024 :: /home/zw963/Elixir/simple/test/
$ mix format /home/zw963/Elixir/simple/test/simple_test.exs

(no output on stderr)

You can check all my config here

thanks.

@raxod502
Copy link
Member

raxod502 commented Mar 23, 2024

Can you do more testing to see what is the difference between the configured command line

(mix-format . ("apheleia-from-project-root"
".formatter.exs" "mix" "format" "-"))

and what you updated it to, that results in one working on your system but not the other? Apheleia is just running the command.

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

No branches or pull requests

2 participants