# Infinite Loading Issue When Saving Files in Cursor App

**URL:** <https://forum.cursor.com/t/infinite-loading-issue-when-saving-files-in-cursor-app/26328>\
**Category:** Bug Reports\
**Created:** [November 5, 2024, 11:08am UTC](https://forum.cursor.com/t/infinite-loading-issue-when-saving-files-in-cursor-app/26328 "2024-11-05T11:08:43Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![krgoodnews](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/krgoodnews/32/10858_2.png) [@krgoodnews](https://forum.cursor.com/u/krgoodnews)\
**Post date:** [November 5, 2024, 11:08am UTC](https://forum.cursor.com/t/infinite-loading-issue-when-saving-files-in-cursor-app/26328/1 "2024-11-05T11:08:43Z")

</div>

Hi everyone,

I’m experiencing a persistent issue with the Cursor app. Whenever I save a file, the app gets stuck in an infinite loading state. Here are the error messages I’m receiving:

**Error Messages:**

• Saving ‘StudyMessageEdit.tsx’: Getting code actions from ‘TypeScript and JavaScript Language Features’, ‘cursor-retrieval’ (configure).

• Saving ‘settings.json’: Getting code actions from ‘JSON Language Features’, ‘cursor-retrieval’ (configure).

Has anyone encountered this problem before or have any insights on how to fix it? I’ve tried restarting the app and my computer, but the issue persists.

Any help or suggestions would be greatly appreciated!

Thanks in advance.

 ![CleanShot 2024-11-05 at 19.49.05@2x](https://us1.discourse-cdn.com/cursor1/original/2X/f/fff805568ee753072eaa1553925b9702b93f348c.png)

---

<div class="post-metadata">

**Author:** ![jaylane](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/jaylane/32/4867_2.png) [@jaylane](https://forum.cursor.com/u/jaylane)\
**Post date:** [November 5, 2024, 8:54pm UTC](https://forum.cursor.com/t/infinite-loading-issue-when-saving-files-in-cursor-app/26328/2 "2024-11-05T20:54:00Z")

</div>

I run into this from time to time as well. Its got something to do with the Format On Save setting under VSCode settings in cursor. Ironically when this happens and I try to turn off that setting it never saves the state so it remains on forcing me to copy my changed files into sublime close out cursor and then copy paste my updated files into cursor again and save. Really hope this gets looked into

---

<div class="post-metadata">

**Author:** ![Jaakkonen](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/jaakkonen/32/11404_2.png) [@Jaakkonen](https://forum.cursor.com/u/Jaakkonen)\
**Post date:** [November 10, 2024, 9:39pm UTC](https://forum.cursor.com/t/infinite-loading-issue-when-saving-files-in-cursor-app/26328/3 "2024-11-10T21:39:17Z")

</div>

I am sharing this same issue. Files cannot be saved if ESLint format on save or automatically adding missing imports is enabled. This makes it impossible to use Cursor

---

<div class="post-metadata">

**Author:** ![stillmotion](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/stillmotion/32/16823_2.png) [@stillmotion](https://forum.cursor.com/u/stillmotion)\
**Post date:** [December 20, 2024, 11:17pm UTC](https://forum.cursor.com/t/infinite-loading-issue-when-saving-files-in-cursor-app/26328/4 "2024-12-20T23:17:49Z")

</div>

I am seeing this same issue significantly more in version 0.44.5.

My code formatter for swift tries to run on save and saving takes forever:

> Saving ‘File.swift’: Getting code actions from ‘‘Swift’, ‘cursor-retrieval’’

```auto
Version: 0.44.5
VSCode Version: 1.93.1
Commit: 1d610252e6812bf33245763f0742a534fd0f1d90
Date: 2024-12-20T00:02:28.554Z (23 hrs ago)
Electron: 30.5.1
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 23.6.0

```

---

<div class="post-metadata">

**Author:** ![rajzik](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/rajzik/32/8679_2.png) [@rajzik](https://forum.cursor.com/u/rajzik)\
**Post date:** [January 8, 2025, 8:14am UTC](https://forum.cursor.com/t/infinite-loading-issue-when-saving-files-in-cursor-app/26328/5 "2025-01-08T08:14:23Z")

</div>

I do have the same issue.  
I think some thing might be connected to the issue, one of the cursor helper plugin has high CPU usage

---

<div class="post-metadata">

**Author:** ![titocazou](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/titocazou/32/20154_2.png) [@titocazou](https://forum.cursor.com/u/titocazou)\
**Post date:** [January 14, 2025, 10:51pm UTC](https://forum.cursor.com/t/infinite-loading-issue-when-saving-files-in-cursor-app/26328/6 "2025-01-14T22:51:44Z")

</div>

Same issue here. Cursor is stuck in “Saving ‘foo.cpp’ Writing into file…”

I tried everything, reboot, re-install, etc…

Weird thing is that if I change the file name I can finally save it, but if I change it back to its original name it won’t save… It currently only happens to me on a specific file, but it makes for some weird saving gymnastic.

---

<div class="post-metadata">

**Author:** ![drichar](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/drichar/32/21213_2.png) [@drichar](https://forum.cursor.com/u/drichar)\
**Post date:** [January 21, 2025, 2:21pm UTC](https://forum.cursor.com/t/infinite-loading-issue-when-saving-files-in-cursor-app/26328/7 "2025-01-21T14:21:44Z")

</div>

Happens to me with \*.vue files only.

When I apply changes from chat and the file auto-saves, I have to open the “Saving ‘MyComponent.vue’…” dialog, cancel save operation, select all, copy, close file in Cursor, open file in Vim, select all, paste, save there, then reopen in Cursor.

---

<div class="post-metadata">

**Author:** ![drichar](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/drichar/32/21213_2.png) [@drichar](https://forum.cursor.com/u/drichar)\
**Post date:** [January 21, 2025, 2:23pm UTC](https://forum.cursor.com/t/infinite-loading-issue-when-saving-files-in-cursor-app/26328/8 "2025-01-21T14:23:49Z")

</div>

Looks like this is being addressed: [Unable to save files when format-on-save enabled - #6 by danperks](https://forum.cursor.com/t/unable-to-save-files-when-format-on-save-enabled/7293/6)

---

<div class="post-metadata">

**Author:** ![davib](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/davib/32/21441_2.png) [@davib](https://forum.cursor.com/u/davib)\
**Post date:** [January 22, 2025, 1:57pm UTC](https://forum.cursor.com/t/infinite-loading-issue-when-saving-files-in-cursor-app/26328/9 "2025-01-22T13:57:46Z")

</div>

It is happening to me even without Format-on-save enabled.

---

<div class="post-metadata">

**Author:** ![danperks](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/danperks/32/19087_2.png) [@danperks](https://forum.cursor.com/u/danperks)\
**Post date:** [January 22, 2025, 9:32pm UTC](https://forum.cursor.com/t/infinite-loading-issue-when-saving-files-in-cursor-app/26328/10 "2025-01-22T21:32:29Z")

</div>

With the same error, about `cursor-retrieval`?

---

<div class="post-metadata">

**Author:** ![devnjw](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/devnjw/32/23880_2.png) [@devnjw](https://forum.cursor.com/u/devnjw)\
**Post date:** [February 3, 2025, 1:58am UTC](https://forum.cursor.com/t/infinite-loading-issue-when-saving-files-in-cursor-app/26328/11 "2025-02-03T01:58:15Z")

</div>

I have the same issue sometimes. It seems to happen mostly around 00:00 UTC.

---

<div class="post-metadata">

**Author:** ![kenryu](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kenryu/32/9806_2.png) [@kenryu](https://forum.cursor.com/u/kenryu)\
**Post date:** [March 21, 2025, 2:39pm UTC](https://forum.cursor.com/t/infinite-loading-issue-when-saving-files-in-cursor-app/26328/12 "2025-03-21T14:39:01Z")

</div>

Having the same issue too.

---

<div class="post-metadata">

**Author:** ![smp2103](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/smp2103/32/47150_2.png) [@smp2103](https://forum.cursor.com/u/smp2103)\
**Post date:** [April 15, 2025, 7:28am UTC](https://forum.cursor.com/t/infinite-loading-issue-when-saving-files-in-cursor-app/26328/13 "2025-04-15T07:28:17Z")

</div>

If you’re using the GitLens plugin, consider turning it off. When GitLens calculates Git Blame information, large recent commits can cause significant lag throughout VS Code. The plugin’s calculations for blame data can create bottlenecks that affect various VS Code operations, including ESLint processing.

---

<div class="post-metadata">

**Author:** ![yunjin-kim](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/yunjin-kim/32/47146_2.png) [@yunjin-kim](https://forum.cursor.com/u/yunjin-kim)\
**Post date:** [April 15, 2025, 7:31am UTC](https://forum.cursor.com/t/infinite-loading-issue-when-saving-files-in-cursor-app/26328/14 "2025-04-15T07:31:37Z")

</div>

It has been resolved with the above answer.  
Thank you.

---

<div class="post-metadata">

**Author:** ![prberg](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/prberg/32/48121_2.png) [@prberg](https://forum.cursor.com/u/prberg)\
**Post date:** [June 11, 2025, 2:24pm UTC](https://forum.cursor.com/t/infinite-loading-issue-when-saving-files-in-cursor-app/26328/15 "2025-06-11T14:24:56Z")

</div>

Can confirm that GitLens and a large recent commit was the culprit in my case, too. Thanks @smp2103.
