Home Download Buy Blog Forum Support

Portable installation doesn't reload plugins

Portable installation doesn't reload plugins

Postby guillermooo on Mon Oct 05, 2009 10:57 am

Hi,

I have two problems with my portable installation.

Sublime detects the data folder properly, but:

1) My user options are never saved or applied automatically. I looks like Sublime is overwriting them with the default options.
2) Whenever I save a plugin, the changes are saved, but it won't work until I restart sublime.

This is how I start Sublime:

Code: Select all
@ECHO OFF
SET SU_DATA=%~dp0usr\appdata\SublimeData\
SET SU_EXE=%~dp0apps\Sublime Text\sublimetext.exe

doskey su="%SU_EXE%" --data %SU_DATA% $*
guillermooo
 
Posts: 725
Joined: Thu Jul 23, 2009 9:06 am

Re: Portable installation doesn't reload plugins

Postby jps on Mon Oct 05, 2009 11:29 am

I think sublimator has a similar issue, although I haven't been able to replicate it.

Is the data directory on a USB key, or a hard disk?

What does sublime.packagesPath() return in the console?
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: Portable installation doesn't reload plugins

Postby guillermooo on Mon Oct 05, 2009 1:52 pm

Is the data directory on a USB key, or a hard disk?


Off the USB stick (exe + data) everything works like a charm.

My post was about an install (exe + data) on a remote drive.

sublime.packagesPath() returns the expected packages folder, and changes do get saved to plugins, but they aren't reloaded automatically.
guillermooo
 
Posts: 725
Joined: Thu Jul 23, 2009 9:06 am

Re: Portable installation doesn't reload plugins

Postby guillermooo on Mon Oct 05, 2009 3:31 pm

If I install Sublime on my local drive as portable (exact same environment as above), both settings and plugins work well, so maybe the problem lies with Sublime being on a server drive (that's were My Documents happens to be located)?
guillermooo
 
Posts: 725
Joined: Thu Jul 23, 2009 9:06 am

Re: Portable installation doesn't reload plugins

Postby jps on Wed Oct 07, 2009 8:18 pm

If the network share is running via Samba, then I wouldn't expect auto-reloading to work, my understanding is that Samba doesn't support ReadDirectoryChangesW, as required for the auto reload.

The issue with the application settings should come from the same source: the settings are written out at shutdown, so if it hasn't detected your changes to them while running, they'll get clobbered on exit.
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot], shagabutdinov, Yahoo [Bot] and 17 guests