Sublime Forum

Symbol Indexing problem on sshfs

#1

Hi, I’ve just bought Sublime and installed sublime-text_build-3033_amd64.deb.
I’ve been using Sublime 2 for a long time. My folders in project are mounted using sshfs and I had no problems till now.
Everything works except symbol indexing. I managed to find an error message in console:
unable to watch path: /here/goes/the/path errno: 24
These messages occur for every folder in project.
I tried to add a local folder. Same error. Indexing doesn’t work.
I tried new project with one test local folder in project. Same error. Indexing works.

Weird…Is there any way to monitor indexing status/progress/etc ?
And what does error 24 mean?

Sublime is the best.

0 Likes

#2

Hmmm… After a time few symbols became GoTo-able.
So it looks like symbol indexing works through sshfs, but very slow.

But it is still interesting, what does this error mean and if there is a way to monitor indexing process.

0 Likes

#3

Hmmm. I also faced old problem with sshfs. Sublime 3 saves file in temp file, the moves temp file to target file. This behavior needs workaround=rename parameter for sshfs, otherwise you get errno: 1 when trying to save file. When tried in terminal, got
mv: cannot move qq' toqq2’: Operation not permitted
So it looks like these errno are linux API error codes.
virtsync.com/c-error-codes-include-errno
Sooo, error 24 means
#define EMFILE 24 /* Too many open files */
Ubuntu default is 1024 that is quite a low limit I think, but Sublime should handle this error correctly. And why does it need so much ? One per processor core looks enough for me for indexing.

So, conclusions:

  1. Please, make it possible to monitor indexing process
  2. Please, create descriptive error messages (“Too many open files” instead of errno 24)
  3. Please, fix open file descriptor limit errors.
0 Likes

#4

Hmmmm… increasing open file limit in OS didn’t help.
I could face sftp-server issue fixed in 2008 - there was a hard-coded limit of 100 open file descriptors.
openbsd.org/cgi-bin/cvsweb/s … y=date;f=h
Looks like Centos 5 has no fixed version of openssh package, only Centos 6 does.

0 Likes