Closed GabrielPedroza closed 1 year ago
I tried stack overtflowing it, https://stackoverflow.com/questions/52586965/why-does-prettier-not-format-code-in-vs-code, but this didn't help since I already had it already. I also tried closing vs code and reopening it and that didn't work neither.
For me it's silently failing because the version this extension uses is too old for this TypeScript syntax:
SyntaxError: ';' expected. (101:12)
99 |
100 | class SkipElement extends Error {
> 101 | override name = "SkipElement";
| ^
102 | }
103 |
Prettier supports this format correctly (I use it via pre-commit
) but the extension fails.
@prettier can you make errors loud? It's not the first time the extension frustratingly fails with zero feedback, there should be a notification.
had a similar issue, solved it following this: https://stackoverflow.com/a/58669550/18693152
had a similar issue, solved it following this: https://stackoverflow.com/a/58669550/18693152
I tried doing that as well and the stack overflow post seems very similar to the one I posted initially but still didn't solve it. If you or anyone runs into this and solves it in a different way, please let me know. Thanks anyway for the link
Please got the same problem, tried everything, prettier extension just stopped working in my vscode ..
can you make errors loud? It's not the first time the extension frustratingly fails with zero feedback, there should be a notification.
We used to have this behavior and it was insanely annoying. Errors are shown in the bottom bar in VS Code.
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
After I updated my MacBook (regular software update and xcode (never seen before but updated it as well)), my format stopped working as intended from my settings.json. Ex: I originally had 4 as Tab Width and now I only have 2 so I switched it and it doesn't work. I have no idea how to replicate or reproduce this issue.
VS Code Version:
Version: 1.57.1 (Universal) Commit: 507ce72a4466fbb27b715c3722558bb15afa9f48 Date: 2021-06-17T13:28:32.912Z Electron: 12.0.7 Chrome: 89.0.4389.128 Node.js: 14.16.0 V8: 8.9.255.25-electron.0 OS: Darwin arm64 21.4.0
Prettier Extension Version: v8.1.0 (latest version as of this issue post)
OS and version: MacOS v12.3.1 (latest version aswell)
Prettier Log Output
**settings.json