What happened:
When saving files in the directory automatically generated using gqlgen, the code in the files is deleted.
This phenomenon occurs regardless of whether you save using the menu bar (File > Save) or a shortcut. I tried multiple shortcuts, but the problem occurred with all of them.
Things I tried:
- Does this happen on a different branch? No improvement
- Changed the shortcut from Command + S to Command + D. No improvement
- Can I save using a different IDE? Yes
- Troubleshooting according to the documentation
Occurs with specific code but cannot be shown due to security requirements.
Environment
- MacOS 15.2 (24C101)
- Cursor
- Version: 0.49.5 (Universal)
- Commit: 1.96.2
- Date: fd861c8a80c0f9e4e35294b1915ee8a7b29ae850
- Electron: 2025-04-24T02:57:26.819Z
- Electron Build ID: 34.3.4
- Chromium: undefined
- Node.js: 132.0.6834.210
- V8: 20.18.3
- OS: 13.2.152.41-electron.0
It is difficult to use Cursor until improvements are made.