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.

Running slow on `save Participants`

See original GitHub issue

Summary

VsCode Prettier extension is slowing down onSave.

Github Repository to Reproduce Issue

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

Steps To Reproduce:

  1. Open vscode
  2. Add the formatOnSave option
  3. Install latest extension from prettier. Activate it.
  4. Open a js file.
  5. Save.

Expected result

Saving should have been instant.

Actual result

Saving can take up to a minute.

Additional information

Screenshot 2020-02-18 at 12 11 47

VS Code Version: 1.42.1

Prettier Extension Version: 3.20.0

OS and version: macOS Mojave 10.14.6

Prettier Log Output

["INFO" - 12:16:31 PM] Extension Name: "prettier-vscode".
["INFO" - 12:16:31 PM] Extension Version: "3.20.0".
["INFO" - 12:16:31 PM] Loaded module 'prettier@1.19.1' from '/Users/cardomar/Web/uxf-sple-tf/node_modules/prettier/index.js'
["INFO" - 12:16:31 PM] Enabling prettier for languages
[
  "css",
  "graphql",
  "html",
  "javascript",
  "javascriptreact",
  "json",
  "json5",
  "jsonc",
  "less",
  "markdown",
  "mdx",
  "mongo",
  "postcss",
  "scss",
  "typescript",
  "typescriptreact",
  "vue",
  "yaml"
]
["INFO" - 12:16:31 PM] Enabling prettier for range supported languages
[
  "graphql",
  "javascript",
  "javascriptreact",
  "json",
  "typescript",
  "typescriptreact"
]
["INFO" - 12:16:34 PM] Formatting /Users/cardomar/Web/uxf-sple-tf/src/sple/resources/run-export-webview.js
["INFO" - 12:16:34 PM] Using ignore file (if present) at /Users/cardomar/Web/uxf-sple-tf/.prettierignore
["INFO" - 12:16:34 PM] Loaded module 'prettier@1.19.1' from '/Users/cardomar/Web/uxf-sple-tf/node_modules/prettier/index.js'
["INFO" - 12:16:34 PM] File Info:
{
  "ignored": false,
  "inferredParser": "babel"
}
["INFO" - 12:16:34 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 12:16:34 PM] Prettier Options:
{
  "filepath": "/Users/cardomar/Web/uxf-sple-tf/src/sple/resources/run-export-webview.js",
  "parser": "babel",
  "useTabs": false,
  "tabWidth": 2,
  "printWidth": 120,
  "endOfLine": "lf",
  "semi": false,
  "singleQuote": true
}
["INFO" - 12:16:34 PM] Loaded module 'prettier-eslint@unknown' from '/Users/cardomar/Web/uxf-sple-tf/node_modules/prettier-eslint/dist/index.js'
["INFO" - 12:16:34 PM] Formatting using 'prettier-eslint'
["INFO" - 12:16:39 PM] Formatting completed in 769.107933ms.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
cjroebuckcommented, Mar 9, 2020

I think this should be reopened.

I’m also seeing very long save times recently (probably from when VSCode moved away from the timeout option as referenced by @brombomb). Disabling the prettier extension is the only thing that solves the issue right now.

["INFO" - 9:50:32 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 9:50:32 PM] Prettier Options:
{
  "filepath": "/Users/....js",
  "parser": "babel",
  "trailingComma": "es5",
  "tabWidth": 2,
  "semi": true,
  "printWidth": 80,
  "singleQuote": false
}
["INFO" - 9:50:32 PM] Loaded module 'prettier-eslint@unknown' from '/Users...'
["INFO" - 9:50:32 PM] Formatting using 'prettier-eslint'
["INFO" - 9:50:43 PM] Formatting completed in 677.137701ms.

Although the logs say that formatting only takes 677ms, the actual time from when I hit cmd+s to Formatting completed.. is 11 seconds.

0reactions
Xamsixcommented, Mar 27, 2020

Same issue right now

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running Save Participants Takes forever to load. Cannot see ...
Saving is not always slow. Sometimes saving is slow, but not slow enough to cause the "Running Save Participants" notification to appear.
Read more >
Running Save Participants runs forever on File Save
In my VS Code, it's an issue that comes from an installed Extension. How to find an extension did not work? Open the...
Read more >
Here's How to Make VSCode Faster
To check if you're running on the latest version of VS Code, do the following: On Mac, go to Code > About Visual...
Read more >
Hold large remote events - Google Workspace Learning Center
1 Create an event with internal and external guests · In Calendar, click Create "" · Add the event title, date, and time....
Read more >
Proof That It Doesn't Matter How Slow You Go
Seriously—it's science! A new study shows that your speed doesn't matter when it comes to increasing cardiovascular health.
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