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.

Version 8.0.0 errors with "Extension 'Prettier - Code Formatter' cannot format" on all documents

See original GitHub issue

Any time I attempt to format a JSON document in 8.0.0 I get the error:

Extension 'Prettier - Code Formatter' cannot format '<document>.json'

I see no log files to assist with troubleshooting this.

Based on other users’ reports, this issue appears to be happening for more than just JSON; formatting itself might not be working at all on 8.0.0.

This issue doesn’t happen when rolling back to 6.4.0.

my versions:

prettier: ^2 via yarn v2 pnp prettier-vscode: 8.0.0 vscode: 1.57.1


To users experiencing this issue, you may roll back using the following steps:

  1. Go to the extensions tab
  2. Find the prettier extension
  3. Click on the settings cog
  4. Install another version...
  5. Select your desired version

Per the changelog, you should not use v7

https://github.com/prettier/prettier-vscode/blob/main/CHANGELOG.md#700

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:82
  • Comments:29 (2 by maintainers)

github_iconTop GitHub Comments

45reactions
ntottencommented, Jun 22, 2021

Fixed in 8.0.1 - hopefully for good.

8reactions
MichaelXFcommented, Jun 22, 2021

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Extension 'Prettier - Code Formatter' Cannot Format - (Mac v8.0)
To check go to File->preferences->settings and then type prettier and scroll down until you see Prettier:enable and make sure it is checked. (In ......
Read more >
Prettier+ - Visual Studio Marketplace
Install through VS Code extensions, search for Prettier+ by Benas Svipas . If you can't find extension by name try to search by...
Read more >
Prettier 2.1: new --embedded-language-formatting option and ...
When Prettier identifies cases where it looks like you've placed some code it knows how to format within a string in another file,...
Read more >
How to fix Prettier Extension not working issue in VS CODE
Your browser can't play this video. Learn more. Switch camera.
Read more >
Extension Prettier Code Formatter cannot format : r/vscode
I get this error when starting new project and usually it eventually fixes itself. I've installed eslint and prettier to the local packages, ......
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