Home Download Buy Blog Forum Support

Sublime does not show all files and folders in its sidebar

Sublime does not show all files and folders in its sidebar

Postby goloroden on Mon Oct 21, 2013 9:59 am

I am using Sublime Text 2.0.2 on OS X (10.8.5). Most of the times, when I work on a project, I open the according folder so that it shows in the sidebar. Until now this has always been working perfectly.

Now I cloned a really big repository with lots and lots of folders and files, deeply nested within each other. To be exact: It's 20894 files within 4326 folders.

When I open the top-most folder of this repository, everything looks normal - but some folders appear as empty folders. Hence it looks like as if there were no files, although there definitely are some, even folders will not be shown.

It looks as if Sublime cuts everything below a certain folder and refuses to show it.

Does anybody know what causes this behavior and how to fix it?

Just waiting doesn't help: Although it may be that Sublime works in the background to read the tree, even after two hours of waiting nothing happened to the not-shown files and folders. So apparently there must be another problem.

And there is no exclusion pattern.

In Sublime's console it says:

Code: Select all
scan: /some/folder has been seen before, skipping (using inode) previous path: /some/other/folder inode: 27425614.


The folder /some/folder is missing. It may be that this is correlated, but I'm not sure. Any ideas?
goloroden
 
Posts: 3
Joined: Mon Oct 21, 2013 9:57 am

Re: Sublime does not show all files and folders in its sidebar

Postby adzenith on Mon Oct 21, 2013 1:37 pm

I think the problem is that Sublime Text doesn't reindex things that are symlinked (I believe) which means that symlinked directories are empty in the sidebar.
adzenith
 
Posts: 1217
Joined: Mon Oct 19, 2009 9:12 pm

Re: Sublime does not show all files and folders in its sidebar

Postby leesei on Mon Oct 21, 2013 5:20 pm

Hi there, goloroden. leesei from SO here.
Glad that you gathered the info and posted up here.

I'm not sure if ST2 is designed to handle your project's size. Hope other experienced user can answer that.

More points I thought of:
Do your project have loads of symlinks? The find command I suggested cannot find files in symlinked folders.
Also, did you tried ST3? ST3 builds an index per project to save the scanning time. ST3 can work along side ST2. So it wouldn't hurt trying.
leesei
 
Posts: 2
Joined: Mon Oct 21, 2013 5:14 pm

Re: Sublime does not show all files and folders in its sidebar

Postby goloroden on Tue Oct 22, 2013 7:13 am

@adzenith: This sounds like my issue. How may I fix it?

@leesei: Thanks for pointing me to this forum :-). Yes, there are symlinks (lots of ;-)), so this may be the issue (as adzenith has also pointed out). The only question left then is how to solve it…
goloroden
 
Posts: 3
Joined: Mon Oct 21, 2013 9:57 am

Re: Sublime does not show all files and folders in its sidebar

Postby goloroden on Tue Oct 22, 2013 7:50 am

As it seems this is a well-known issue with symlinks, which is also not fixed yet in ST3 (see http://sublimetext.userecho.com/topic/8 ... e-sidebar/ for details).

So it seems we have to wait and see…
goloroden
 
Posts: 3
Joined: Mon Oct 21, 2013 9:57 am

Re: Sublime does not show all files and folders in its sidebar

Postby leesei on Tue Oct 22, 2013 1:09 pm

Now that symlinks seems to be the problem, you may try adding follow_symlinks to your project file (ST3's created project has this as default):

Code: Select all
{
    "folders":
    [
        {
            "follow_symlinks": true,
            "path": "/home/leesei/dotfiles"
        },
        {
            "follow_symlinks": true,
            "path": "/home/leesei/scripts"
        },
    ]
}
leesei
 
Posts: 2
Joined: Mon Oct 21, 2013 5:14 pm

Re: Sublime does not show all files and folders in its sidebar

Postby IanOliver on Thu Feb 27, 2014 12:38 pm

Not sure if this is exactly the same problem, but I've had the issue where folders show in the sidebar but cannot be expanded to show the files within.

I've found that removing/deleting the .sublime-workspace file for the respective project seems to rectify it, at least in my testing so far. Hope that helps.
IanOliver
 
Posts: 1
Joined: Thu Feb 27, 2014 12:07 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], karbica, Yahoo [Bot] and 45 guests