Sublime Forum

I can't open folders by clicking on them

#1

Hi,

This seems to happen with very specific folders. When I try to click on them, nothing happens, here is an example :
http://storage3.static.itmages.com/i/16/0527/h_1464340015_2868729_2ec82f0bb0.png

“css”, “images” and “js” are all folders, but I don’t know why they have a different icon than all of the other folders (like public and Resources shown on the image).

When I click on “js” for example, it highlights the icon, but nothing happens.

The only way for me to open this folder is by right-clicking and open in a new window, then it shows me the files inside, but that’s kind of annoying opening a folder this way.

I’m using the build 3114 on ubuntu 16.04

0 Likes

#2

It looks like they are symlinks. You need to explicitly tell ST in your project file to follow symlinks it encounters when traversing a directory recursively.

0 Likes

#3

Ok, how do I do that ?
I saved my folder as project because it wasn’t before, and inside the sublime-project file I added
"follow_symlinks":true,
But it doesn’t change.

1 Like

#4

How does your project file look like?

1 Like

#5

Like this :

http://storage8.static.itmages.com/i/16/0527/h_1464360588_2335381_295a4149ca.png

0 Likes

#6
{
    "folders":
    [
        {
            "path": ".",
            "follow_symlinks": true
        }
    ]
}

follow_symlink can be configured per-folder, so in needs to be in the folder’s settings.

See also: http://docs.sublimetext.info/en/latest/file_management/file_management.html#projects

2 Likes

#7

Ok I think it’s working now, but when there’s another symlink inside the previous one, I need to refresh the folders to open them, is it normal ?

0 Likes

#8

Something’s seriously wrong here. I have a symlinked folder, but the it’s not the symlink that’s got the special icon and cannot be opened — it’s the target folder. Also, adding "follow_symlinks": true to the project config has no effect.

0 Likes