vscode-elixir-ls: Formatter hangs on VSCode 1.42.0
I get this everytime I try to save an Elixir file:
Running Save Participants for 'test/users/notifications/mailer/some_mailer_test.exs': Formatting
It doesn’t even save the file until i Cancel the message above. Once I cancelled it, it also formats the file. However, it’s a really annoying behaviour.
It works fine if you downgrade VSCode to 1.41 or less.
Am I the only one with this problem on VSCode 1.42.0 ?
I’ve seen there are other Extensions with this problem, here’s a PR from another project that explains and fixes it: https://github.com/zxh0/vscode-proto3/pull/73
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 26 (7 by maintainers)
Commits related to this issue
- Mark vscode-elixir-formatter as incompatible https://marketplace.visualstudio.com/items?itemName=sammkj.vscode-elixir-formatter Fixes #34 — committed to elixir-lsp/vscode-elixir-ls by axelson 4 years ago
- Mark vscode-elixir-formatter as incompatible https://marketplace.visualstudio.com/items?itemName=sammkj.vscode-elixir-formatter Fixes #34 — committed to alex88/vscode-elixir-ls by axelson 4 years ago
I had this same issue and realized it was because I had set my default formatter to Prettier in my user settings. So prettier was trying to format my elixir files instead of vscode-elixir-ls.
Okay, well if you figure it out please report back! Best of luck 😃
@axelson I don’t remember for sure, but it should be one of these two (probably the second one):
https://marketplace.visualstudio.com/items?itemName=saratravi.elixir-formatter
https://marketplace.visualstudio.com/items?itemName=sammkj.vscode-elixir-formatter
It was a very old one, I don’t remember when I’ve installed it. I’ve just found to have it, I removed it, and everything worked as expected.