View unanswered posts | View active topics



Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Library Depot 
Author Message
Member

Joined: Wed Mar 03, 2010 1:44 pm
Posts: 72
Location: LYON, FRANCE
Reply with quote
Hi all,

I'm coding a new plugin to help you copy libraries to your projects

If anyone want to test it ... http://bit.ly/hyeKti

Gimme feedback


Description
This plugin will help you to copy your favorite libraries to your projects

What LibraryDepot do:

* Extract zip files to your src directory
* Allow to place zip files in sub directories
* Copy swc files to your lib directory

What LibraryDepot does NOT do:

* Copy svn repositories
* Keep treemenu synced with depot, FD restart needed


Thanks in advance to anyone who tries it out!
Remember : Use at your own risk


Tested on FlashDevelop versions:

* 4.0 Beta


Known Bugs/Issues

* ???


Version History

/ 2.0.42 - July 5, 2011
* Update to v2 for FlashDevelop 4

/ 1.0.36 - January 6, 2011
* change timer to FileSystemWatcher to update menu

/ 1.0.27 - January 5, 2011
+ add filter for library files, only swc, zip files show up in treemenu
+ add filters for zip extract
+ dialog at first run to select depot path
* bug fix of treemenu refresh when library path setting changes

/ 1.0.5 - December 23, 2010
+ add support for SWC file
* icon change

/ 1.0.1 - December 22, 2010
- initial implementation of LibraryDepot


Sources

* http://bit.ly/eUo1uS

Image


Last edited by lamenace on Mon Aug 08, 2011 7:42 am, edited 5 times in total.



Wed Dec 22, 2010 4:36 pm
Profile
Member

Joined: Wed Mar 03, 2010 1:44 pm
Posts: 72
Location: LYON, FRANCE
Reply with quote
No feedback ?


Tue Jan 04, 2011 2:43 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
I think it's not very clear about what it is for (and what benefit from using it) and maybe a little screenshot would sell it a bit more :)


Tue Jan 04, 2011 4:10 pm
Profile WWW
Member

Joined: Wed Mar 03, 2010 1:44 pm
Posts: 72
Location: LYON, FRANCE
Reply with quote
right :)


Tue Jan 04, 2011 5:07 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
Ok, now that's actually looking interesting :)

First, depot issues:
- exception at startup until the depot location is configured
- it should fail silently and offer to choose the depot location in the context menu
- (minor) have to restart FD when changing the depot path in settings
- experiencing slowdowns when the depot contains lots of files (startup and on right-click in the project tree)

Using ZIPs:
- tricky to use as their content is extracted as-is, creating /src/src/classes if the ZIP was created by selecting the library's 'src' folder instead of its content; maybe it could be smart and only extract the content of whatever src folder the ZIP would contain,
- would be nice not to extract .svn repos from ZIPs (and basically ignore anything starting with a dot or underscore char).

Aside from that it really seems to be a great plugin idea!


Tue Jan 04, 2011 8:33 pm
Profile WWW
Member

Joined: Wed Apr 16, 2008 9:42 am
Posts: 89
Reply with quote
Great plugin! It would be more useful if you download the libs online, so you always have the latest versions. But to accomplice that, you should make a list with all online SWC's and keep it up-to-date, which would be a heavy task..

_________________
https://www.curioos.com/markknol


Tue Jan 04, 2011 10:11 pm
Profile WWW
Member

Joined: Wed Mar 03, 2010 1:44 pm
Posts: 72
Location: LYON, FRANCE
Reply with quote
Philippe wrote:
Ok, now that's actually looking interesting :)

First, depot issues:
- exception at startup until the depot location is configured
- it should fail silently and offer to choose the depot location in the context menu
- (minor) have to restart FD when changing the depot path in settings
- experiencing slowdowns when the depot contains lots of files (startup and on right-click in the project tree)

Using ZIPs:
- tricky to use as their content is extracted as-is, creating /src/src/classes if the ZIP was created by selecting the library's 'src' folder instead of its content; maybe it could be smart and only extract the content of whatever src folder the ZIP would contain,
- would be nice not to extract .svn repos from ZIPs (and basically ignore anything starting with a dot or underscore char).

Aside from that it really seems to be a great plugin idea!



- exception at startup until the depot location is configured : Done, dialog will show at first run
- (minor) have to restart FD when changing the depot path in settings: maybe i'll do this later. Could i use a timer to check directory at interval ?
- experiencing slowdowns when the depot contains lots of files: i tested it with lot of files and didn't slow me that much. Do you think people will use more than 100 libs ?
- would be nice not to extract .svn repos from ZIPs: i added some filters
- tricky to use as their content is extracted as-is: people will have to clean zip files because there is so many ways to zip files that i don't know how to handle it


Wed Jan 05, 2011 10:25 am
Profile
Member

Joined: Wed Mar 03, 2010 1:44 pm
Posts: 72
Location: LYON, FRANCE
Reply with quote
mknol wrote:
Great plugin! It would be more useful if you download the libs online, so you always have the latest versions. But to accomplice that, you should make a list with all online SWC's and keep it up-to-date, which would be a heavy task..

Working with online libs is risky for your project because it will download libs that can be unstable or incompatible. Thats why i create this plugin, to keep a safe area to store your approved libs.


Wed Jan 05, 2011 10:29 am
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
For ZIPs you could look if they contain a "src" folder and extract only its content - it could be a setting or it could be a confirm dialog.

It's better not to use a time to monitor settings change - see for example in AS3Context.Settings class for an example of change notification.


Wed Jan 05, 2011 3:09 pm
Profile WWW
Member

Joined: Wed Mar 03, 2010 1:44 pm
Posts: 72
Location: LYON, FRANCE
Reply with quote
Philippe wrote:
For ZIPs you could look if they contain a "src" folder and extract only its content - it could be a setting or it could be a confirm dialog.

It's better not to use a time to monitor settings change - see for example in AS3Context.Settings class for an example of change notification.


nope i was talking about a timer to scan depot folder so when a new file is copied in directory it will appear in menu

for the zip il will do that


Wed Jan 05, 2011 4:12 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
Ah to monitor the folder you should use a FileSystemWatcher!


Wed Jan 05, 2011 4:25 pm
Profile WWW
Member

Joined: Wed Mar 03, 2010 1:44 pm
Posts: 72
Location: LYON, FRANCE
Reply with quote
Ewwww that's not safe!! i just overwrite my main.as in src with the one in the zip. This means people who doesn't check the zip first could loose some code in some cases


Wed Jan 05, 2011 5:05 pm
Profile
Member

Joined: Wed Mar 03, 2010 1:44 pm
Posts: 72
Location: LYON, FRANCE
Reply with quote
Philippe wrote:
Ah to monitor the folder you should use a FileSystemWatcher!

ok done thanks for the help


Thu Jan 06, 2011 8:52 am
Profile
Member

Joined: Fri Mar 09, 2007 8:02 am
Posts: 279
Reply with quote
nice work ! greate guy


Sat Jan 08, 2011 5:26 pm
Profile
Member

Joined: Sat Mar 12, 2011 1:35 pm
Posts: 1
Reply with quote
At last time,i have an error while start FD
Image
in Programm Setting it isn't, and i can't disable this plugin. How can i fix this erron or delete this plugin ?
The dll is in Plugins folder(last version).


Sat Mar 12, 2011 1:43 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 17 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.