question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Formatter hangs on VSCode 1.42.0

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:26 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
bstrocommented, May 16, 2020

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.

1reaction
axelsoncommented, Apr 28, 2020

Okay, well if you figure it out please report back! Best of luck 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio Code 1.42 is changing <br> to <br /> on format
I made the settings.json file look like this: "editor.defaultFormatter": "vscode.html-language-features", "[html]": { "editor.
Read more >
January 2020 (version 1.42) - Visual Studio Code
VS Code allows extensions to change a file's contents when saving files to disk. Features like Format on Save and Fix on Save...
Read more >
Basic Editing in Visual Studio Code
Learn about the basic editing features of Visual Studio Code. Search, multiple selection, code formatting.
Read more >
Tree View API - Visual Studio Code
"devDependencies": { "@types/node": "^10.12.21", "@types/vscode": "^1.42.0", "typescript": "^3.5.1", "tslint": "^5.12.1" } }.
Read more >
April 2022 (version 1.67) - Visual Studio Code
The language status item now shows formatter conflicts - those happen when multiple formatters for a language are installed but none of them...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found