I actually experience the reindexing as well now, but only if I save a certain file. Whenever I edit “Packages/PythonImproved/PythonImproved.tmLanguage”, either manually in ST or if I generate it using AAAPackageDev, ST spawns 8 indexing processes (for my 4cores+HT) which are running at 12.5% each for a few seconds. The status bar also shows the indexing percentage.
I am unable to reproduce this with any other file. I usually have this syntax set to be the default for Python files (".py") and I have my whole Packages folder open as a project, but even when I changed the default syntax to the bundled Python.tmLanguage and then edited/changed that file it would not trigger indexing. If I changed the PythonImproved file it would reindex however, even if it is not set as the default syntax for .py files (verified). I have a total of 9 Python files open in two windows, it is completely unreasonable to exhaust my CPU for several seconds for those.
Multile restarts of ST also didn’t help. I don’t see a message about a corrupted index in the console either.
With sublime.log_indexing(True)
I was able to observe the following:
- When I save Python.tmLanguage (currently default for .py files) I see this:
indexing [queue 6]: spawning 1 workers to process 1 / 1 files
indexing [queue 6]: indexed 1 files
- When I save PythonImproved.tmLanguage I see this:
indexing [queue 7]: spawning 4 workers to process 705 / 705 files
indexing [queue 8]: spawning 4 workers to process 4009 / 4009 files
indexing [queue 7]: indexed 705 files
indexing [queue 8]: indexed 4009 files
Edit: Removing (actually renaming) the Index directory also didn’t help.