Find (ctrl+f) occasionally breaks, reopening script fixes

I often use ctrl+f and it seems to sometimes stop working for some reason. It might have to do with switching in and out from the script or between multiple scripts, not sure.

Pressing the button doesnt find any text when this happens. Have to close and reopen the script to get it working again…

6 Likes

I always fix it by focusing the explorer and then re-focusing the script window. It’s a lot less hassle than reopening the script.

2 Likes

This is pretty nasty. It fails silently, meaning that the user can be misled into thinking that their script doesn’t contain any matches.

1 Like

Which button are you referring to that isn’t working? Ctrl+F seems to work alright for me.

The window comes up properly, but if you click “Find”, it won’t highlight occurrences that exist, leading you to believe there aren’t any, despite that not being the case. Also, it doesn’t happen 100% of the time – it seems sporadic and random, so you won’t be able to repro it easily.

1 Like

Does this happen in large or small scripts?

I can’t say for certain off of the top of my head, but I can’t remember it ever happening with small scripts. That, of course, could be attributed to me not needing to use Find in small scripts though.

Repro:

  • Open two scripts
  • Find something in one
  • Close the script tab
  • Try to find something in the other one

I assume the script tab you closed never dissociated from the find widget.

3 Likes

Ah, thanks for that! Got it, I’ll add this to our bug list.