elixir-sublime-syntax icon indicating copy to clipboard operation
elixir-sublime-syntax copied to clipboard

The `mix_format_file` command is not showing error details on the panel

Open danilokleber opened this issue 1 year ago • 4 comments

If formatting fails it does not show the output details for a quick reference on what to fix.

I noticed that the build Elixir - mix format FILE shows it just right.

Thanks for the attention.

danilokleber avatar Aug 17 '23 15:08 danilokleber

Could it be that your key binding unintentionally runs lsp-elixir's formatter? Please check the console (Ctrl+` ) and see if it says ElixirSyntax: Formatting 'some_file.ex'! when you press your shortcut keys. Let's see what messages you get in the console. :slightly_smiling_face:

azizk avatar Aug 17 '23 19:08 azizk

I don't have LSP installed and I get the ElixirSyntax: Formatting 'some_file.ex'! message.

danilokleber avatar Aug 17 '23 20:08 danilokleber

That's strange. Don't know what the problem could be atm.

azizk avatar Aug 17 '23 22:08 azizk

Indeed. To add a bit more, I had previously uninstalled the elixir-tmbundle package as this one serves me well enough. Then I missed some snippets from that package and reinstalled it. To my surprise the errors are showing back again. But I guess the formatter command from your package is not being used anymore. If I set the format on save setting on, I see the panel without the output like when I had just your package on. The console message also do not show the ElixirSyntax: Formatting 'some_file.ex'! message when using the key binding.

danilokleber avatar Aug 18 '23 19:08 danilokleber