Sublime Forum

Searching for file content taking far longer than usual

#1

Subject line says it all, using command-shift-F to find a string within a project never gets any results, the output in the console shows it detected a few repeated inodes due to symlinks but then nothing is returned.

0 Likes

#2

I found out today that it works when I specify a filename pattern, but not when I leave it blank. It used to search all files in the project when I did that, now it just hangs.

0 Likes

#3

Let me get this straight.
You have a project set up and are searching within the project?
So you are sure the desired text is within the project? Yes?
Why does your project contain symlinks? Are they going to files that need to be included?

I have a project that searches through over 2000 *.cpp, *.h, *.lua, *.xml and *.sql files and I can get results within 1 or 2 seconds.
I have made sure that only the relevant file types are searched by using “file_exclude_patterns”. Have you set up your project this way?
If not a search will be made inside ALL the files, binary types included, and this will slow it down.

I have just now performed a search using the default Ctrl-Shift-F, as I usually use Find++, and the results are just as fast.
Also do you have the results sent to the buffer (a new page with the file results) or the console? It shouldn’t make any difference but give it a try and see.

0 Likes

#4

Thanks for the reply.

My project is a similar size to yours. This works previously without any errors, very quickly just as you say. I’m unsure why it stopped working.

I haven’t set up any exclusions. If I use the search filter, it also does not work. This is what it used by right click > find in project.

Any filename pattern works as expected, for example *.rb, *.php.

I’ve tried using and not using a buffer, both just hang:

Searching 4929 files for “start_master”

If I filter the same search by *.rb, I get two files with context.

0 Likes

#5

This doesn’t sound like just a poor search pattern, rather a more serious bug in your program.
It should not just “hang” with no further output. There should be a negative result displayed, either in the console or the buffer.

What operating system and version of Sublime are you using?
I am assuming OSX since your first post used the term “command+shift+F”. Which version of that?

Maybe someone close to the developer(s) can help further.

0 Likes