next-ls
next-ls copied to clipboard
Missing error message when formatting fails
First of all - formatting works as expected.
What I did was I broke my local .formatter.exs by adding a non existing module to the list of plugins - this obviously causes formatting to stop working, and there is a message about it in logs but without the explanation why.
Broken .formatter.exs
[
# ...
plugins: [NOPE],
# ...
]
Next LS logs inside Zed
[Next LS] Compiled !
[Next LS] Failed to format the file: file:///Users/teamon/code/headless/lib/headless.ex
[Next LS] Compiling 1 file (.ex)
When running with mix format there is an error message:
❯ mix format
Compiling 3 files (.ex)
** (Mix) Formatter plugin NOPE cannot be found
(What triggered my switch from Elixir LS to Next LS were the never ending issues with formatter loosing config and reformatting the whole file using lots of parenthesis. So far Next LS haven't failed me once there, amazing job!)