Home Download Buy Blog Forum Support

Project doesn't reload

Project doesn't reload

Postby jbrooksuk on Wed Feb 29, 2012 11:27 am

Some times my projects reload, some times they don't.

I have a relatively large project (around 2,900 files and 650 folders) with a few excluded folders and files from the sidebar. When I added, delete, change a file the project doesn't update and I have to manually force it to reload.

Is there a reason for this? Is it due to the size, can I force it to reload ignoring this setting?
jbrooksuk
 
Posts: 761
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: Project doesn't reload

Postby tito on Wed Feb 29, 2012 2:37 pm

Yeah, sublime should monitor the file and reload the project when the file change.
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 851
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: Project doesn't reload

Postby jbrooksuk on Wed Feb 29, 2012 2:45 pm

Except it doesn't properly on larger projects.
jbrooksuk
 
Posts: 761
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: Project doesn't reload

Postby jps on Thu Mar 01, 2012 6:38 am

What OS + Filesystem? Local or network? Are any symlinks, hardlinks or junction points involved?
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: Project doesn't reload

Postby jbrooksuk on Thu Mar 01, 2012 9:08 am

Windows 7 64Bit, connecting to a samba share on Ubuntu 11.04. Just a mapped drive.
jbrooksuk
 
Posts: 761
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: Project doesn't reload

Postby jps on Thu Mar 01, 2012 11:40 am

The issue is almost certainly that ReadDirectoryChangesW, the win32 API function responsible for file change notifications, is unable to report notifications from samba shares.
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: Project doesn't reload

Postby jbrooksuk on Thu Mar 01, 2012 12:19 pm

I fixed this by adding

Code: Select all
change notify = yes


to my smb.conf file :)
jbrooksuk
 
Posts: 761
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: Project doesn't reload

Postby tito on Thu Mar 01, 2012 3:19 pm

If I change the project file via python, the project is not reloaded. Project is a local file.

For example I add:

Code: Select all
  "folder_exclude_patterns": [
    "Tag/.git"
   ],


and nothing happens.
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 851
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: Project doesn't reload

Postby jbrooksuk on Thu Mar 01, 2012 4:09 pm

tito wrote:If I change the project file via python, the project is not reloaded. Project is a local file.

For example I add:

Code: Select all
  "folder_exclude_patterns": [
    "Tag/.git"
   ],


and nothing happens.

Huh? The project file itself is hosted on my machine. The actual files and folders are hosted on a Samba share.
jbrooksuk
 
Posts: 761
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: Project doesn't reload

Postby tito on Thu Mar 01, 2012 4:22 pm

I was talking about the project file, not about the files in a project. whatever very similar problem.
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 851
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Next

Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 24 guests