Sublime Forum

Opening a project gives me an "empty" folder

#1

I’m not sure if I’m doing something wrong, or if I’m expecting too much, or what.

  1. I “add a folder to a Project.” The folder appears in my sidebar. If I expand it, I can see its contents, subfolders, etc.
  2. I quit Sublime Text 2.
  3. I re-open Sublime Text 2 and load the project. The folder is still in my siderbar, but only its name – I cannot see its contents, or subfolders, etc.

“Refresh folder” does nothing.

If I re-add the folder to the project, I get the folder back (as a duplicate of the original folder). The original folder is still there, still blank, but I get a second folder, populated.

This seems to happen most often when I’m working at home (Ubuntu), save a project in Dropbox, go to work and try to open the same project from Dropbox (Mac OSX Snow Leopard).

0 Likes

#2

Aha – for what it’s worth, I figured it out.

The Ubuntu install of Sublime opens the Dropbox folder in question, and the Mac install of Sublime opens the Dropbox folder in question, but each folder has to be a separate instance in the project.

My guess is that since the file path to the local folder is different for each OS, Sublime can’t figure out how to “get to” the folder when I change OSes. So I have to keep two folders in the project, both the “same” folder. One will open in Ubuntu, the other in Windows.

0 Likes

#3

I had some weird problems with this after migrating my Sublime settings from Windows to Ubuntu. In the end I backedup/deleted my Sublime sessions file at $HOME/.config/sublime-text-3/Local/Session.sublime_session

It now seems very happy.

I have needed to recreate my old projects though as the copied .sublime-project files contain incorrect path references

0 Likes