Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SublimeText 3 using 100% CPU, "stuck while processing file"

Tags:

sublimetext3

I've been using Sublime Text 3 for some time now, and over the past few weeks I've run into an issue where Sublime will spawn numerous processes, eating up 100% of my CPU.

Below is the output of wmic process where "name='sublime_text.exe'"

CommandLine                                                                   ProcessId
"C:\Program Files\Sublime Text 3\sublime_text.exe"                            10980
"/C/Program Files/Sublime Text 3/sublime_text.exe" "--crawl" "10980:crawl:1"  12152
"/C/Program Files/Sublime Text 3/sublime_text.exe" "--crawl" "10980:crawl:1"  8420
"/C/Program Files/Sublime Text 3/sublime_text.exe" "--crawl" "10980:crawl:3"  6016
"/C/Program Files/Sublime Text 3/sublime_text.exe" "--crawl" "10980:crawl:3"  12008

When I open Sublimes console, I see the following lines

worker 8420 appears stuck while processing file /D/dev/project/ext/index.html, killing process
worker 8420 appears stuck while processing file /D/dev/project/ext/build/index.html, killing process

I've since removed the entire /D/dev/project/ext folder from the index, and then I removed it from the project entirey, but that didn't seem to help.

Has anyone seen this before? I'd really rather not do a full re-install of Sublime.

like image 555
ekbarber Avatar asked Mar 25 '15 15:03

ekbarber


2 Answers

You can try this:

shift + super + p:

enter image description here

{
    "color_scheme": "Packages/User/SublimeLinter/Monokai Bright (SL).tmTheme",
    "font_size": 13,

    "folder_exclude_patterns": [".svn", ".git", ".hg", "CVS", "node_modules/*"],
    "binary_file_patterns": ["*.jpg", "*.jpeg", "*.png", "*.gif", "*.ttf", "*.tga", "*.dds", "*.ico", "*.eot", "*.pdf", "*.swf", "*.jar", "*.zip"],
}

references:

Limit File Search Scope in Sublime Text 2

like image 124
Jerry Ni Avatar answered Oct 12 '22 12:10

Jerry Ni


It may be the case that you have opened a project which contains 3rd party libraries.

In my particular case I have this kind of problem if I do not exclude from Project Index node_modules directory of some bigger node.js application.

Sublime Text tries to refresh index files on each run.

Add exclude pattern in your Project:

"folder_exclude_patterns":
[
    "DIR_NAME"
]
like image 39
Piotr Dabrowski Avatar answered Oct 12 '22 14:10

Piotr Dabrowski