Version 8.0.0 errors with "Extension 'Prettier - Code Formatter' cannot format" on all documents
See original GitHub issueAny 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:
- Go to the extensions tab
- Find the prettier extension
- Click on the settings cog
Install another version...
- 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:
- Created 2 years ago
- Reactions:82
- Comments:29 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed in 8.0.1 - hopefully for good.