BLIde users community
 
  Index  •  FAQ  •  Search  

It is currently Thu Sep 09, 2010 1:16 pm




Post new topic Reply to topic  [ 10 posts ] 
 new BLIde plugin 
Author Message
 Post subject: new BLIde plugin
PostPosted: Sat May 17, 2008 5:56 pm 

Joined: Wed Jan 02, 2008 2:40 am
Posts: 33
Location: Alexandria, VA
So I downloaded the newest version of BLIde and tried out the plugin SDK.

I created a metrics plugin that appears under the 'Add-ons' menu.
what it does:
- counts the number of lines in your project per file
- counts the number of blank lines
- counts the number of comment lines
- counts the number of actual code
- gives you a total lines of code count
- sort by any one of the above metrics in the grid

You can get it here.

just drop the .sdk in your plug-ins folder where ever you installed BLIde.

Just some feedback after spending some hours with the SDK:
- What are the plans of integrating win forms with the SDK?
reason I ask, is I used visual studio to develop the GUI and then did alot of copying/pasting and modifying to get that custom window in place. While it's not important right now, would be nice to ease the process of integrating forms from a vb project.

That leads me to another point:
- I was able to just add the BLide.exe as a reference to a vb.net project and gain access to the BLIde SDK that way (but I abandoned this idea and stuck with BLIde to give the SDK editor a test run). But I wonder if this way would help speed up the development of complex GUI's with the SDK?

---
- GetDocumentList() is a bit slow. I had implemented a progress bar thinking the parsing was what would be slow, but it's the initial building of the doc list that takes a bit. You see this when you press 'calculate'.

- is there a method to get the Editor's file name? I couldn't figure out a way to do this. The first column of the metrics is left blank for this reason. I guess when this becomes available I'll make a public download on the blitzmax forums.


- the 'try catch' doesn't seem to be 'catching' in the main method. I had null reference errors while developing the plugin and I'd get a standard JIT runtime error dialog (with no line numbers, just the stack trace).

- intellisense seems spotty. I had a form with a public member called 'progressbar', but whenever i referenced it as 'myForm.progressBar' i would not get any of the progressbar's properties.

- Is there a way to do multiple sdk files that link together for a single plugin? This plugin was very simple in functionality but as you can see the code is rather long. It'd be great of BLIde supported a 'plugin solution' just like a blitzmax solution, so that more complex SDK's can remain manageable and maintainable. If not, I understand if this is too niche and not worth doing.

- is the SDK going to provide a way for plugins to save their own metadata? or is up to the plugin to do it's own file IO and saving states? This would be useful for plugins that want to save preferences or something.

- in relation to the above point. Wouldn't it be better to save plugins in the application data folder? I may be mistaken, but this might make things a bit more 'vista-proof'. I know vista doesn't allow apps write access to program file folders.


all in all, an awesome first release! very pleased with the results and possibilities.


Last edited by Anonymous on Sat May 17, 2008 6:44 pm, edited 1 time in total.

Offline
 Profile  
 
 Post subject: new BLIde plugin
PostPosted: Mon Jul 07, 2008 9:45 am 
Site Admin

Joined: Tue Mar 22, 2005 12:19 pm
Posts: 808
Location: Barcelona
Hello AlexO,
To some of your requests,
the documents list building is a lot faster now, after some re-writting of the internal object structures on the SDK side. Now the list is built 'instantly'. Also, the editors filename has beed added as a property to the editor class.
the try/catch issue is internally handled by the DOM compiler. I'll take a look to see if I can make it a little bit more vervose.
To the intellisense, I'm working with the qwhale guys in a lot of improvements to this area, and I hope to update the whole thing in a months time or so.
On the other hand, it'll be possible to make some several sdk files to link to a single plugin as soon as I can get the intellisense merged across several sdk files. If not, it wouldn't be this practical.
Additionaly, there are no plans (yet) to let the plugins store their own metadata. I will look into this in the future, when the API is much more complete.

_________________
---
Happy coding!


Offline
 Profile  
 
 Post subject: new BLIde plugin
PostPosted: Wed Jan 21, 2009 6:45 am 

Joined: Wed Jul 04, 2007 6:46 am
Posts: 87
I get an error saying "There was an error compiling the plugin" with this one with BLIde 00.09.65A. Any ideas?


Offline
 Profile  
 
 Post subject: new BLIde plugin
PostPosted: Wed Jan 21, 2009 9:24 am 
Site Admin

Joined: Tue Mar 22, 2005 12:19 pm
Posts: 808
Location: Barcelona
Source code of the plugin is based on the first beta version of the SDK, and the SDK has changed a lot since then. AlexO is working on a new version of this plugin, we're still beta testing it, There are some small areas of the SDK that are being rewritted to allow plugins to be updated when BLIde restart and this kind of things.

_________________
---
Happy coding!


Offline
 Profile  
 
 Post subject: new BLIde plugin
PostPosted: Wed Jan 21, 2009 1:49 pm 

Joined: Wed Jul 04, 2007 6:46 am
Posts: 87
Ah, cool. I shall await with bated breath. :)


Offline
 Profile  
 
 Post subject: new BLIde plugin
PostPosted: Sun May 17, 2009 1:54 am 

Joined: Tue Oct 03, 2006 6:13 am
Posts: 9
Any news on this Plugin ?
It's something I really like to see one day in Blide.
Thanks


Offline
 Profile  
 
 Post subject: new BLIde plugin
PostPosted: Mon May 18, 2009 1:11 am 
Site Admin

Joined: Tue Mar 22, 2005 12:19 pm
Posts: 808
Location: Barcelona
Yes, I have a working version of this plugin in my computer. I supose AlexO is of with me distributing it, so I'll release a link for it later!

_________________
---
Happy coding!


Offline
 Profile  
 
 Post subject: new BLIde plugin
PostPosted: Mon May 18, 2009 3:04 pm 

Joined: Wed Jan 02, 2008 2:40 am
Posts: 33
Location: Alexandria, VA
by all means go for it if you have a working one Ziggy. I haven't checked up on the source in a while and it's been several updates of the SDK since I've looked at the original.


Offline
 Profile  
 
 Post subject: new BLIde plugin
PostPosted: Wed May 20, 2009 7:09 pm 
Site Admin

Joined: Tue Mar 22, 2005 12:19 pm
Posts: 808
Location: Barcelona
This plugin is now available in the Plugins section of the BLIde website, here: http://www.blide.org/?section=blideplugins

_________________
---
Happy coding!


Offline
 Profile  
 
 Post subject: new BLIde plugin
PostPosted: Thu May 21, 2009 6:47 am 

Joined: Tue Oct 03, 2006 6:13 am
Posts: 9
Thanks a lot Alexo and Ziggy.
Working nicely I appreciate that feature :)


Last edited by Anonymous on Thu May 21, 2009 6:47 am, edited 1 time in total.

Offline
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 


 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
You cannot post attachments in this forum

Search for:
cron

 
Index  |  FAQ  |  Search

phpBB skin developed by: John Olson
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group