-
-
Notifications
You must be signed in to change notification settings - Fork 465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prettier does not format documents in latest Prettier + VS code versions #3071
Comments
I am getting the same issue. I rollback to the previous version to resolve it for me. |
Yes, for me using the MacOS version of VSCode, the last version of prettier that still works was 9.15.0. |
Why: f6ff18b I revert this (again, in the dist js file) and it works |
Confirmation here |
Same problem and has been for a very long time |
Just ran into this as well on extension version For info:
|
Seems like even reverting to an older version does not fix prettier not working when installed via Yarn PnP |
Same issue. Getting "Invalid prettier configuration file detected." in the log. Works fine with Prettier 2.8.8.
|
Same issue.
UPDATE: Resolved. Was because I had a |
Prettier hasn't worked for over a month now |
Any progress with this issue? I'm also seeing it since about a month ago. I have the We have many projects that don't use JavaScript and don't contain a Downgrading to 9.15.0 will fix the problem. Starting from 9.16.0 the module fails to load with the following messages:
With the newer versions, removing |
I was having the same issue and had to downgrade to 9.15.0. |
Apparently no downgrade will make it work with 3.0.3,... |
I'm using prettier 3.0.0 and none of the version of prettier-vscode has worked. |
if your config file is named and update the contents to use commonjs (might not even be necessary): /** @type {import("prettier").Config} */
const config = {
singleQuote: true,
trailingComma: "all",
plugins: ["prettier-plugin-tailwindcss"],
tailwindConfig: "./tailwind.config.js",
};
module.exports = config; looks like something with the module type parsing is messed up. |
The same problem |
The only 'workaround' for me is running Prettier over CLI before creating a PR:
It's not a solution whatsoever, it just the only thing I think to get my documents formatted. |
After updating some dependencies on my project, Prettier stopped formatting I tried the solution from @kitsunekyo, and found out that this was the line causing the issue: module.exports = {
plugins: [require('prettier-plugin-tailwindcss')],
// ...
} Changing that to this solved the issue for me: module.exports = {
plugins: ['prettier-plugin-tailwindcss'],
// ...
} It was logging out Everything is good now. 🙏 |
This issue has been labeled as stale due to inactivity. Reply to keep this issue open. |
Still monitoring.
…On Thu, Dec 7, 2023 at 8:51 PM github-actions[bot] ***@***.***> wrote:
This issue has been labeled as stale due to inactivity. Reply to keep this
issue open.
—
Reply to this email directly, view it on GitHub
<#3071 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BBO4GJQXG4UHMFULVR5WKJ3YIJXBLAVCNFSM6AAAAAA2EFESYWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBWGQZTGMJSG4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
this answer saved my life and my job!! |
What fixed it for me was adding this to VS Code settings:
|
This issue has been labeled as stale due to inactivity. Reply to keep this issue open. |
I encountered this issue when I synchronized my VSCode settings on another computer; the Prettier extension was referencing a different path. Correcting the 'prettier.prettierPath' setting resolved the problem for me. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
Prettier does not format code, error and logs shown below.
Using:
Ubuntu: 22.04.2 in Windows + WSL 2
VS Code: 1.80.0
Prettier: 9.19.0
Github Repository to Reproduce Issue
Installed the latest prettier vs-code extension.
Steps To Reproduce:
Expected result
Document should be formatted.
Actual result
Document is not formatted.
Additional information
I updated to the latest prettier extension + regular vs code update and it just stopped working.
VS Code Version:
Version: 1.80.0 (user setup)
Commit: 660393deaaa6d1996740ff4880f1bad43768c814
Date: 2023-07-04T15:06:02.407Z
Electron: 22.3.14
ElectronBuildId: 21893604
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.19044
Prettier Extension Version:
Prettier: 9.19.0
OS and version:
Windows 10 Pro Version 21H2
Prettier Log Output
The text was updated successfully, but these errors were encountered: