Just as the title suggests, when format on save is enabled I takes a long time to save files. Formatter is Prettier.
As I am writing this post:
Saving ‘geniusCreateCase.ts’: Running ‘Prettier - Code formatter’ Formatter
is running for a good 10 minutes now.
I can’t disable format on save in cursor, when I untick the box it automatically gets checked again.
Have cursor and VScode opened side by side and vsc is unaffected.
I love cursor, but it’s a harsh love right now with a lot of performance issues…
3 Likes
I have the same issue, would love to get this fixed. Cursor is amazing but I have to keep switching back to VSCode because of this.
Came here to report the same. It’s been driving me nuts.
Brady
September 11, 2024, 5:30pm
5
Same here. ES lint is unhappy with the lack of formatting, I need to switch back to VS Code until this is resolved.
+1 on this issue. Format on save is making this IDE virtually unusable, which is tragic because I love it in every other way.
deanrie
September 15, 2024, 10:10am
7
Hey @kamilCodes
I noticed this problem a while ago with VSCode, and it somehow resolved itself over time. It’s not a Cursor issue, it’s a VSCode issue. Here’s what I found after a bit of Googling:
opened 12:20PM - 16 Apr 20 UTC
closed 06:03PM - 13 Mar 21 UTC
uncomfirmed
<!--
SEE THIS GUIDE ON OPENING A GOOD ISSUE: https://github.com/prettier/pretti… er-vscode/wiki/Writing-a-Good-Issue
**You must complete all steps in this checklist or the issue will be automatically closed.**
- [ ] Write a summary of your issue
- [ ] Include a link to a github repo that can be used to reproduce the issue or exact reproduction steps.
- [ ] Provide the expected result
- [ ] Provide the actual result
- [ ] Include extension, os, and vs code information
- [ ] Include Prettier extension log
PLEASE NOTE: Many of the issues with the extension are heavily based on your specific configuration and source code. In order to improve your chances of having your bug fixed, the number one thing you can do is create a github repository that can be used to reproduce the issue along with the detailed reproduction steps. If you don't provide this info, it is usually the case that we cannot reproduce the issue and the issue will be closed.
-->
### Summary
Frequently, when I save a file with FormatOnSave option on, it takes forever to finish saving. I have to quit VS Code and restart. Then, save happens instantaneously again. After a while, the issue re-appears. The identical issue to this one: https://github.com/prettier/prettier-vscode/issues/1253. Not at all clear why that issue is closed -- clearly people are having this problem.
### Github Repository to Reproduce Issue
https://github.com/prettier/prettier-vscode/issues/1253
### Steps To Reproduce:
https://github.com/prettier/prettier-vscode/issues/1253
### Expected result
Doesn't take a long time to save.
### Actual result
Took forever to save.
### Additional information
Obviously, many people are having this same problem. This issue (https://github.com/prettier/prettier-vscode/issues/1253) should not be closed.
**VS Code Version**:
**Prettier Extension Version**:
**OS and version**:
## Prettier Log Output
```
LOG GOES HERE. DO NOT USE A SCREESHOT, COPY AND PASTE THE TEXT
```
opened 01:49AM - 27 Apr 23 UTC
bug:vscode
Type: <b>Bug</b>
I dont know why but my prettier take about 1-2s to format.
… ![image](https://user-images.githubusercontent.com/114045023/234739741-1021a001-d0b3-4f22-811f-b15cf2c03902.png)
Extension version: 9.12.0
VS Code version: Code 1.77.3 (Universal) (704ed70d4fd1c6bd6342c436f1ede30d1cff4710, 2023-04-12T09:19:37.325Z)
OS version: Darwin arm64 21.4.0
Modes:
Sandboxed: Yes
<details>
<summary>System Info</summary>
|Item|Value|
|---|---|
|CPUs|Apple M1 Pro (8 x 24)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_renderer: enabled_on<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: disabled_off|
|Load (avg)|5, 5, 4|
|Memory (System)|16.00GB (1.41GB free)|
|Process Argv|--crash-reporter-id b70f3c63-e04c-4015-8b63-1803fe3fdfa6|
|Screen Reader|no|
|VM|0%|
</details><details>
<summary>A/B Experiments</summary>
```
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscoreces:30445986
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
vsccc:30610678
nodejswelcome1cf:30587006
3biah626:30602489
pyind779:30671433
f6dab269:30613381
pythonsymbol12:30671437
a9j8j154:30646983
vsctsb:30705553
azdwalk:30721579
pythonms35:30701012
pythonfmttextcf:30716743
```
</details>
I don’t think so, In the VSCode it doing very well about Prettier and perfectly formatting right now, But the same config it doesn’t work anymore in Cursor.
Same here. Has anyone solved this?
Got also this problem, and this is maybe why I ve got this timeout on save through SFTP : This problem drives me crazy : no way to save through SFTP !
What a lack of time ! And as usual, no support, even for PRO sub…