Sublime Forum

Searching problem - XX characters selected instead of number of matches

#21

What version of ST are you using?

Which syntaxes are involved?

What I’d try to do in this situation is:

  1. delete %APPDATA%\Sublime Text\Cache folder.
    It’s safe to be deleted, will be re-created.

  2. rename/delete %APPDATA%\Sublime Text\Index
    Maybe a currupted index db file causing trouble.

0 Likes

#22

@deathaxe the version I use is build 4126.
Syntaxes - mainly C plus a few perl and bash scripts. There is also a Tools folder that contain some C# code.

I did what you said, renamed both Cache & Index folders and sarted Sublime again. It created new folders and now the situation is as shown below:
image
Unfortunately the behavior is exactly the same as before:

:frowning:

0 Likes

#23

I’m not asking for the index status to check if it’s idle, I’m looking for the full status including how many symbols and files were indexed.

0 Likes

#24

“Index “project_name” is using 20070198 bytes for 287271 symbols across 827325 locations”
This is what Indexing status tells me for this project.

0 Likes

#25

Could you be experiencing this issue perhaps: https://github.com/sublimehq/sublime_text/issues/5294?

0 Likes

#26

ie. Do you have an exceedingly large directory tree opened in that ST window?

0 Likes

#27

@bschaaf, the short answer is no. At least I am not aware of it. I have only loaded project directory + opened few single files from other locations i.e some notes.

However, I have sublime configured in two columns layout and in both I have plenty of files opened. Now I closed all of them and guess what - RAM usage dropped to ~400 Mb. Next I closed and reopen Sublime - RAM usage ~ 200 Mb.

So looks like that was the problem.

0 Likes

#28

Sounds like you just had a ton of files open then. Unsurprisingly that takes a lot of memory to do. Fwiw 800k files with a 200MB index is fairly large.

0 Likes

#29

800k files? The whole directory only has:
$ find . | wc -l
22641 files. And this includes .git own files.
What is that 200Mb index? That is index file for the whole project?

Thank you.

0 Likes

#30

Sorry it’s locations not files. Yes ST indexes the folders you open to provide goto-definition/goto-symbol and auto-complete.

1 Like