Home Download Buy Blog Forum Support

Symbol Indexing problem on sshfs

Symbol Indexing problem on sshfs

Postby beaverhunter on Fri May 10, 2013 3:34 pm

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.
Last edited by beaverhunter on Fri May 10, 2013 6:52 pm, edited 1 time in total.
beaverhunter
 
Posts: 4
Joined: Fri May 10, 2013 3:16 pm

Re: Symbol Indexing problem

Postby beaverhunter on Fri May 10, 2013 4:04 pm

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.
beaverhunter
 
Posts: 4
Joined: Fri May 10, 2013 3:16 pm

Re: Symbol Indexing problem

Postby beaverhunter on Fri May 10, 2013 5:00 pm

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' to `qq2': Operation not permitted
So it looks like these errno are linux API error codes.
http://www.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)
2. Please, fix open file descriptor limit errors.
beaverhunter
 
Posts: 4
Joined: Fri May 10, 2013 3:16 pm

Re: Symbol Indexing problem

Postby beaverhunter on Fri May 10, 2013 6:45 pm

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.
http://www.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.
beaverhunter
 
Posts: 4
Joined: Fri May 10, 2013 3:16 pm


Return to Technical Support

Who is online

Users browsing this forum: Alexa [Bot], Majestic-12 [Bot], Yahoo [Bot] and 31 guests