Sublime Forum

Sublime Text hangs 5% of the time when doing a fuzzy file find (Ctrl + P)

#1

Sublime Text: Build 4126
OS: Linux Mint 20.1 x86_64

Maybe 5% of the time, Sublime Text will hang when trying to do a fuzzy file find (Ctrl + P). It won’t hang immediately, but it will hang after a few key presses. It feels like it might be related to typing bringing up a large file (something binary or minified text) intermittently before reaching the full name of the file I’m looking for.

I have to force close Sublime in order to continue using it.

Is there a way to debug this further? Im unfamiliar with where Sublime might keep long-lived logs or if something like this would even be loggable.

Thanks

0 Likes

#2

I don’t think there are any logs for anything like that; it does indeed sound like you might have a massively large file that’s being loaded for preview though.

To verify that you’d have to identify any large files that appear in the sidebar that aren’t flagged as part of the binary_file_patterns and move them away/add them to that setting and see if the problem persists.

0 Likes

#3

I will try updating that.

I just had it happen again though this time there were no large files, and only text files in the Ctrl + P fuzzy find. I was doing a search for sitemap. About 4 files showed up, all smaller than ~ 2 screens full of text. I was just paging down and sublime hung.

I actually just tried to reproduce with those same files, and I can get it to hang if I tap the arrow keys fast enough between two of those files.

0 Likes

#4

If you have a license can you try the latest development build and see if it happens there?

0 Likes

#5

I do have a license, though Im not sure how to get the latest build on Linux. I will look up how to do this.

I just got it on video as well, hangs at around 9s. https://youtu.be/bXy-SreoSy8 Doesnt show anything super interesting though

0 Likes

#6

I was able to make it hang on the latest development build. Build: 4137. I downloaded the .tar.xz, extracted, ran from there. Looks like it’s still using all my plugins and stuff too. Not sure how to get it into safe mode yet.

Interestingly, It also crashed when booting up that build for the first time after about a second or so, but it seems to run fine now on the second and third boot up of it.

0 Likes

#8

It looks like I found it. The specific plugin was Discord Rich Presence, which sends a status to discord based on the file you’re working on.

Repro:

  • subl --safe-mode .
  • Ctrl + Shift + P -> Install Package Control
  • Ctrl + Shift + P -> Install Package -> Discord Rich Presence
  • Ctrl + P
  • Hold the down arrow

Sublime will eventually hang one on of the files

0 Likes