apheleia icon indicating copy to clipboard operation
apheleia copied to clipboard

mix-format not work.

Open zw963 opened this issue 1 year ago • 1 comments

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.

zw963 avatar Mar 11 '24 15:03 zw963

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

https://github.com/radian-software/apheleia/blob/dd24c54897a19c2d7e0d90409bb23238fcac79f2/apheleia-formatters.el#L92-L93

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

raxod502 avatar Mar 23 '24 01:03 raxod502