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.

FormatOnSave takes a long time

See original GitHub issue

Summary

Frequently, when I save a file with FormatOnSave option on, it takes forever to finish saving. I have to quit VS Code and restart. Then, save happens instantaneously again. After a while, the issue re-appears. The identical issue to this one: https://github.com/prettier/prettier-vscode/issues/1253. Not at all clear why that issue is closed – clearly people are having this problem.

Github Repository to Reproduce Issue

https://github.com/prettier/prettier-vscode/issues/1253

Steps To Reproduce:

https://github.com/prettier/prettier-vscode/issues/1253

Expected result

Doesn’t take a long time to save.

Actual result

Took forever to save.

Additional information

Obviously, many people are having this same problem. This issue (https://github.com/prettier/prettier-vscode/issues/1253) should not be closed.

VS Code Version:

Prettier Extension Version:

OS and version:

Prettier Log Output

LOG GOES HERE. DO NOT USE A SCREESHOT, COPY AND PASTE THE TEXT

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:67
  • Comments:115 (5 by maintainers)

github_iconTop GitHub Comments

118reactions
ntottencommented, Apr 16, 2020

The issue you referenced was closed because I can’t reproduce the bug. If someone can provide a valid repro I’m happy to try to fix it, but that bug nor this one has enough info. This extension has millions of monthly users. Clearly not everyone is having this issue. Please provide repro step and I’ll investigate.

82reactions
AmanMinhascommented, Aug 25, 2021

I found a solution that works for me after MONTHS!

Screen Shot 2021-08-25 at 4 40 00 PM

Uninstalled this bad boy and it fixed the issue for me. Hope it works for you guys too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Anyone know how to make prettier run faster when ... - Reddit
Anyone know how to make prettier run faster when run on save? It takes about 2 seconds every time I write my buffer...
Read more >
VS-Code Prettier Format On Save doesn't work - Stack Overflow
Follow these steps: CTRL + SHIFT + P; Format Document (in pop-up bar); Select Format Document; Select Configure Default Formatter.
Read more >
How to use Prettier in VS Code - Robin Wieruch
A brief step by step tutorial on how to install and use Prettier in VS Code (Visual Studio Code). Prettier is an opinionated...
Read more >
VS Code tips — Format on save - YouTube
Today's VS Code tip: Format on saveAutomatically format your code when you save it. No more worrying about checking in unformatted codeUse ...
Read more >
I finally learned how to setup Prettier & VSCode - YouTube
... 00:00 Prettier & VS Code 00:11 Install Prettier extension 00:35 Enable Format on Save 01:07 Set default formatter 02:02 Test it out!...
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