Sublime Forum

Sublime 3.2.1 (3207) keeps on indexing

#1

My Sublime keeps the CPU high. I saw there’s other issues regarding this type of behavior, though it looks like sublime just never wants to stop indexing -

index “Home…” is using 153652224 bytes for 308293 symbols across 6675657 locations
index “Home…” collated in 5.04s from 783225 files
index “Home…” is using 153656320 bytes for 308293 symbols across 6675657 locations
index “Home…” collated in 4.63s from 783225 files
index “Home…” is using 153771008 bytes for 308293 symbols across 6675657 locations
index “Home…” collated in 4.95s from 783225 files
index “Home…” is using 153616384 bytes for 308293 symbols across 6675657 locations
index “Home…” collated in 4.85s from 783034 files
index “Home…” is using 153628672 bytes for 308293 symbols across 6675657 locations
index “Home…” collated in 4.92s from 783034 files
index “Home…” is using 153665536 bytes for 308293 symbols across 6675657 locations

I’m assuming the reason has to do something with:

number of files to index (0) exceeds index_files_sanity_limit (524288), bailing out
number of files to index (0) exceeds index_files_sanity_limit (524288), bailing out
number of files to index (0) exceeds index_files_sanity_limit (524288), bailing out
number of files to index (0) exceeds index_files_sanity_limit (524288), bailing out
number of files to index (0) exceeds index_files_sanity_limit (524288), bailing out
number of files to index (0) exceeds index_files_sanity_limit (524288), bailing out
number of files to index (0) exceeds index_files_sanity_limit (524288), bailing out

Any tips?

0 Likes

#2

is your home directory a git repo?


UPDATE: I notice that allow_git_home_dir is false by default. So probably not git-related :confused:

    // Enables showing git status for a git repository in the user's home
    // directory. This is disabled by default since it is typically accidental
    // and can cause heavy CPU usage related to file system watches.
    "allow_git_home_dir": false,
0 Likes

#3

The “Home” folder has nothing git related, the other folder has but it doesn’t seem to be doing anything related to it…
Thanks though

0 Likes

#4

Do you have a file added that’s constantly being updated, like a log file, a database or similar? It looks like indexing is being disabled for you anyway due to the number of files you have added, perhaps just setting "index_files": false would be best.

0 Likes

#5

I eventually closed Sublime, reopened the projects and it seemed to have worked… Weird bug

0 Likes