Home Download Buy Blog Forum Support

merge_dir messages and avoiding scanning some plugin folders

merge_dir messages and avoiding scanning some plugin folders

Postby poiop on Wed Feb 22, 2012 8:57 pm

Hi.

I'm having a bit of a problem with sublime text 2. I want to stop it from scanning some folders from my plugins (I'm adding some frameworks to the plugin and there's a lot of directories).

When starting sublime text 2 with the --debug flag, I get lots of these messages:

Code: Select all
catalogue.cc:198 merge_dir                                        scan: /Users/me/Library/Application Support/Sublime Text 2/Packages/a/aa/a.framework has been seen before, skipping
catalogue.cc:198 merge_dir                                        scan: /Users/me/Library/Application Support/Sublime Text 2/Packages/a/a.framework/Versions/Current has been seen before, skipping
catalogue.cc:198 merge_dir                                        scan: /Users/me/Library/Application Support/Sublime Text 2/Packages/sublime-lldb-plugin/lldb_plugin/2.6/LLDB.framework has been seen before, skipping
catalogue.cc:198 merge_dir                                        scan: /Users/me/Library/Application Support/Sublime Text 2/Packages/a/a.framework/Versions/A/Headers has been seen before, skipping
catalogue.cc:198 merge_dir                                        scan: /Users/me/Library/Application Support/Sublime Text 2/Packages/a/a.framework/Versions/A/Resources has been seen before, skipping

How can I get rid of it and make the editor not scan those folders? Python won't load them unless I tell it to, because I have some packages where most of the plugin is located and only load them on demand.

Thanks
poiop
 
Posts: 2
Joined: Wed Feb 22, 2012 8:40 pm

Re: merge_dir messages and avoiding scanning some plugin folders

Postby jps on Thu Feb 23, 2012 3:45 am

Package directories will always be scanned in their entirety, and there's no way to disable this at the moment. However, scanning even a large package shouldn't have any detrimental effects, except for a small increase in startup time.

Only top level .py files will be interpreted as plugins, so you can still include Python modules without any issues.
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm


Return to Plugin Development

Who is online

Users browsing this forum: Exabot [Bot], jbjornson and 4 guests