This just started happening to me and is driving me nuts. In certain files, if I make a change, cursor reverts them back within a second, and then reverts back to my change and on and on.
2024-08-29 22:42:10.955 [error] Failed to get related files No indexer found for file. Maybe not inside a git repo? /Users/xx/xx//package.json
2024-08-29 22:42:51.025 [error] Failed to get related files No indexer found for file. Maybe not inside a git repo? /Users/xx/xx//package.json
2024-08-29 22:42:59.047 [error] Failed to get cached related files… falling back to uncached No indexer found for file. Maybe not inside a git repo? /Users/xx/xx//package.json
2024-08-29 22:42:59.047 [error] Failed to get related files No indexer found for file. Maybe not inside a git repo? /Users/xx/xx//package.json
I just updated cursor tonight but the issue still persists
Doesnt seem likely that it is from the git graph (The gitgraph say isEnabled: false) Do you have any other reason to believe it is the git graph? There are no indexers so git graph is probably a no-op.
Can you please send more logs? does it happen if you download older versions. here is 0.39:
I was rather frantically trying to figure out what was going on, so I started looking at the Cursor processes output, this was the only one that I could really correlate as it seemed to be somewhat in sync with the file constantly jumping back and forth.
I’ll collect a bit more of logs and send it to you, then I’ll try the older version.
It’s a package.json file that this happening in right now, if that… makes any difference.
2024-08-29 23:13:55.414 [info] =======>Debug stream time 155.4928109999746
2024-08-29 23:13:55.414 [info] =======>Debug ttft time 151.19505799934268
2024-08-29 23:13:55.414 [info] Average of latest 20 ttft time 142.8047603498213
2024-08-29 23:13:55.414 [info] Average of latest 20 stream time 153.00091729993
2024-08-29 23:13:55.414 [info] Average of latest 20 total time NaN
2024-08-29 23:13:55.415 [info] Average of latest 20 client time 333.919677734375
2024-08-29 23:13:55.415 [info] Average of latest 20 discrepencies NaN
2024-08-29 23:13:55.415 [info] CPP RT LOG: All stats {"streamingtime":378.70068359375,"actualTtftFromStart":426.965576171875,"timeTillServerRequest":52.310791015625,"requestToTtft":374.65478515625,"totalTime":431}
2024-08-29 23:13:55.415 [info] CURSOR LOG: restFunc done 80107eee-fbc3-4132-ab5a-d8118ef98052
2024-08-29 23:13:58.620 [info] CURSOR LOG: restFunc initiated 7d1a0c50-9578-4b10-b1ef-a35a9e672186
2024-08-29 23:13:58.975 [info] CURSOR LOG: Done streaming cpp with id 7d1a0c50-9578-4b10-b1ef-a35a9e672186
2024-08-29 23:13:58.975 [info] CPP RT LOG: Time taken for streaming cpp 354.3271484375 with request 7d1a0c50-9578-4b10-b1ef-a35a9e672186
2024-08-29 23:13:58.975 [info] CPP Request Log with id 7d1a0c50-9578-4b10-b1ef-a35a9e672186
2024-08-29 23:13:58.975 [info] =======>Model input
2024-08-29 23:13:58.975 [info] =======>Model output
"import": "./dist/components/accordion/index.js"
},
"./account-details-card": {
"types": "./dist/components/account-details-card/index.d.ts",
2024-08-29 23:13:58.975 [info] =======>Debug stream time 208.87743300013244
2024-08-29 23:13:58.975 [info] =======>Debug ttft time 199.7402059994638
2024-08-29 23:13:58.975 [info] Average of latest 20 ttft time 143.40124449981377
2024-08-29 23:13:58.975 [info] Average of latest 20 stream time 153.59728259993716
2024-08-29 23:13:58.975 [info] Average of latest 20 total time NaN
2024-08-29 23:13:58.975 [info] Average of latest 20 client time 334.7640869140625
2024-08-29 23:13:58.975 [info] Average of latest 20 discrepencies NaN
2024-08-29 23:13:58.975 [info] CPP RT LOG: All stats {"streamingtime":354.3271484375,"actualTtftFromStart":396.9384765625,"timeTillServerRequest":51.46044921875,"requestToTtft":345.47802734375,"totalTime":405.77734375}
2024-08-29 23:13:58.975 [info] CURSOR LOG: restFunc done 7d1a0c50-9578-4b10-b1ef-a35a9e672186
2024-08-29 23:14:01.889 [info] CURSOR LOG: restFunc initiated b1dbf6a8-8b2b-4765-8a1a-14fc0636cba3
2024-08-29 23:14:02.244 [info] CURSOR LOG: Done streaming cpp with id b1dbf6a8-8b2b-4765-8a1a-14fc0636cba3
2024-08-29 23:14:02.244 [info] CPP RT LOG: Time taken for streaming cpp 355.391845703125 with request b1dbf6a8-8b2b-4765-8a1a-14fc0636cba3
2024-08-29 23:14:02.244 [info] CPP Request Log with id b1dbf6a8-8b2b-4765-8a1a-14fc0636cba3
2024-08-29 23:14:02.244 [info] =======>Model input
2024-08-29 23:14:02.244 [info] =======>Model output
"import": "./dist/components/accordion/index.js"
},
"./account-details-card": {
"types": "./dist/components/account-details-card/index.d.ts",
2024-08-29 23:14:02.244 [info] =======>Debug stream time 138.93222999945283
2024-08-29 23:14:02.245 [info] =======>Debug ttft time 133.81121199950576
2024-08-29 23:14:02.245 [info] Average of latest 20 ttft time 142.08546279976144
2024-08-29 23:14:02.245 [info] Average of latest 20 stream time 152.2428035998717
2024-08-29 23:14:02.245 [info] Average of latest 20 total time NaN
2024-08-29 23:14:02.245 [info] Average of latest 20 client time 336.51524658203124
2024-08-29 23:14:02.245 [info] Average of latest 20 discrepencies NaN
2024-08-29 23:14:02.245 [info] CPP RT LOG: All stats {"streamingtime":355.391845703125,"actualTtftFromStart":405.97412109375,"timeTillServerRequest":52.742431640625,"requestToTtft":353.231689453125,"totalTime":408.1240234375}
2024-08-29 23:14:02.245 [info] CURSOR LOG: restFunc done b1dbf6a8-8b2b-4765-8a1a-14fc0636cba3
2024-08-29 23:14:05.082 [info] CURSOR LOG: restFunc initiated ea8fa4ef-1cc6-4dfc-ad8b-30167d013ff7
2024-08-29 23:14:05.582 [info] CURSOR LOG: Done streaming cpp with id ea8fa4ef-1cc6-4dfc-ad8b-30167d013ff7
2024-08-29 23:14:05.582 [info] CPP RT LOG: Time taken for streaming cpp 500.23486328125 with request ea8fa4ef-1cc6-4dfc-ad8b-30167d013ff7
2024-08-29 23:14:05.582 [info] CPP Request Log with id ea8fa4ef-1cc6-4dfc-ad8b-30167d013ff7
2024-08-29 23:14:05.582 [info] =======>Model input
2024-08-29 23:14:05.582 [info] =======>Model output
"import": "./dist/components/accordion/index.js"
},
"./account-details-card": {
"types": "./dist/components/account-details-card/index.d.ts",
2024-08-29 23:14:05.582 [info] =======>Debug stream time 246.85399199835956
2024-08-29 23:14:05.582 [info] =======>Debug ttft time 242.46407199837267
2024-08-29 23:14:05.583 [info] Average of latest 20 ttft time 145.88025554968044
2024-08-29 23:14:05.583 [info] Average of latest 20 stream time 155.91529539981858
2024-08-29 23:14:05.583 [info] Average of latest 20 total time NaN
2024-08-29 23:14:05.583 [info] Average of latest 20 client time 345.65692138671875
2024-08-29 23:14:05.583 [info] Average of latest 20 discrepencies NaN
2024-08-29 23:14:05.583 [info] CPP RT LOG: All stats {"streamingtime":500.23486328125,"actualTtftFromStart":552.63134765625,"timeTillServerRequest":52.493896484375,"requestToTtft":500.137451171875,"totalTime":552.715087890625}
2024-08-29 23:14:05.583 [info] CURSOR LOG: restFunc done ea8fa4ef-1cc6-4dfc-ad8b-30167d013ff7
2024-08-29 23:14:08.447 [info] CURSOR LOG: restFunc initiated 80953408-dad4-4bd9-b9b9-f52104b70cc0
2024-08-29 23:14:09.275 [info] CURSOR LOG: Done streaming cpp with id 80953408-dad4-4bd9-b9b9-f52104b70cc0
2024-08-29 23:14:09.275 [info] CPP RT LOG: Time taken for streaming cpp 827.488525390625 with request 80953408-dad4-4bd9-b9b9-f52104b70cc0
2024-08-29 23:14:09.275 [info] CPP Request Log with id 80953408-dad4-4bd9-b9b9-f52104b70cc0
2024-08-29 23:14:09.275 [info] =======>Model input
2024-08-29 23:14:09.275 [info] =======>Model output
"import": "./dist/components/accordion/index.js"
},
"./account-details-card": {
"types": "./dist/components/account-details-card/index.d.ts",
2024-08-29 23:14:09.275 [info] =======>Debug stream time 681.4718699995428
2024-08-29 23:14:09.275 [info] =======>Debug ttft time 484.9643610008061
2024-08-29 23:14:09.276 [info] Average of latest 20 ttft time 163.80934929978102
2024-08-29 23:14:09.276 [info] Average of latest 20 stream time 181.77074534986167
2024-08-29 23:14:09.276 [info] Average of latest 20 total time NaN
2024-08-29 23:14:09.276 [info] Average of latest 20 client time 370.6320434570313
2024-08-29 23:14:09.276 [info] Average of latest 20 discrepencies NaN
2024-08-29 23:14:09.276 [info] CPP RT LOG: All stats {"streamingtime":827.488525390625,"actualTtftFromStart":772.05419921875,"timeTillServerRequest":54.657958984375,"requestToTtft":717.396240234375,"totalTime":882.13623046875}
2024-08-29 23:14:09.276 [info] CURSOR LOG: restFunc done 80953408-dad4-4bd9-b9b9-f52104b70cc0
2024-08-29 23:14:13.018 [info] CURSOR LOG: restFunc initiated 68ea45dc-5fd6-415b-a2df-36abbd7fa540
2024-08-29 23:14:13.493 [info] CURSOR LOG: Done streaming cpp with id 68ea45dc-5fd6-415b-a2df-36abbd7fa540
2024-08-29 23:14:13.493 [info] CPP RT LOG: Time taken for streaming cpp 475.384521484375 with request 68ea45dc-5fd6-415b-a2df-36abbd7fa540
2024-08-29 23:14:13.493 [info] CPP Request Log with id 68ea45dc-5fd6-415b-a2df-36abbd7fa540
2024-08-29 23:14:13.493 [info] =======>Model input
2024-08-29 23:14:13.493 [info] =======>Model output
"import": "./dist/components/accordion/index.js"
},
"./account-details-card": {
"types": "./dist/components/account-details-card/index.d.ts",
2024-08-29 23:14:13.493 [info] =======>Debug stream time 226.9085499998182
2024-08-29 23:14:13.493 [info] =======>Debug ttft time 222.4087990000844
2024-08-29 23:14:13.494 [info] Average of latest 20 ttft time 166.56273769978435
2024-08-29 23:14:13.494 [info] Average of latest 20 stream time 184.23476899983362
2024-08-29 23:14:13.494 [info] Average of latest 20 total time NaN
2024-08-29 23:14:13.494 [info] Average of latest 20 client time 378.25791015625
2024-08-29 23:14:13.494 [info] Average of latest 20 discrepencies NaN
2024-08-29 23:14:13.494 [info] CPP RT LOG: All stats {"streamingtime":475.384521484375,"actualTtftFromStart":1119.3876953125,"timeTillServerRequest":648.034912109375,"requestToTtft":471.352783203125,"totalTime":1123.401611328125}
2024-08-29 23:14:13.494 [info] CURSOR LOG: restFunc done 68ea45dc-5fd6-415b-a2df-36abbd7fa540
This is basically still happening to me, and I have to resort to go back to VSCode if I need to modify that specific package.json file, and force close Cursor or it keeps changing the file.
[info] Git graph is disabled. shouldIndex: true isEnabled: false
[error] Failed to get related files No indexer found for file. Maybe not inside a git repo?