Infinite Applying

When I ask it to apply the generated code it keeps loading infinitely saying “applying”

Hey, does this happen on every apply?

Also, if you cancel and reapply it, does that work?

They happened in the applications I made for my Forms1.cs file, the others are working normally, if I cancel and reapply it still doesn’t work.

Hi, did you get any correction? :upside_down_face:

Does this issue still occur if you start a new Composer session?
Also, can you try to delete and re-index your codebase in the Cursor settings for me.

Hello Dan. I am also having this issue. On one of my files its just infinite applying while others it is not. Here are several debug steps I have tried

  1. I checked for an update
  2. I tried deleting the file and re-adding it
  3. I tried canceling the composer prompt and prompting something else
  4. I tried letting cursor create the file itself by just pasting the files code as text in the composer.
  5. I also tried deleting and creating the index of cursor as well as creating a new composer session.

Hey, have you got a screenshot of this? Just to see how it’s presenting in your IDE!
Appreciate your steps to troubleshoot this already btw.

Here is a gif of the issue. Eventually it will just time out and not apply any changes. It does seem to very rarely work. It worked for my first 2 prompts tonight then it stopped working on that file again. And it worked on the first prompt a few nights ago before it stopped working.

debug

Hey, can you try to grab us a request ID when this happens, and we can take a look, using this guide:

Here is the composer request ID: ea718c83-7da1-4470-a692-2034ece9213e
and here is the application to the config file request ID (which was ‘applying’ for a while then failed and no changes were made): 50c4fca7-f066-45e1-b85a-4f15bce79286

Hey, this looks like we were having some technical issues at the time, and the apply timed out. Can you confirm everything is working as intended now?

Hello! Sorry for the late reply. I just tried again and the same thing happened. Here is a new request ID.
114896d1-1280-40e1-b728-fac59f637870

Ah, I can see what’s going on!

It looks like the Apply model is running out of tokens, as it does have an upper limit of how many tokens it can output.

It seems that your config, at least in the example of your screenshot, has a very long line on line 19 (collision > data).

The apply feature will likely be trying to output that whole line, and is running out of tokens before it can successfully do so!

In this specific situation, for a small config file like this, I’d recommend just manually applying the changes, as the model cannot handle files with extremely long lines like that!