I have a weird issue that has popped up before and I’m experiencing it now. It doesn’t happen all the time.
I’m currently running a tanstack start app in a monorepo, so not sure if the routeTree generation is causing this issue, but I don’t experience this issue using Zed.
Whenever I create a file, it panics and immediately cancels the file creation in Cursor.
Steps to Reproduce
See above
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Hey, interesting bug. I’ll need a bit more detail to figure it out:
How exactly are you creating the file? Via File Explorer (right click > New File), via CMD+N, or is the Agent trying to create it?
What exactly happens? Does the file appear and then disappear right away? Or does the create dialog just close?
Can you reproduce it if you stop the dev server so routeTree generation doesn’t run?
Can you open Developer Tools (CMD+Shift+I > Console tab) and try creating a file. Do you see any errors there?
Given that it works fine in Zed, it sounds like a conflict between Cursor and something in your setup. I want to understand if it’s related to the file watcher or routeTree generation.