CFEclipse's SnipEx server components released

Posted At : July 11, 2007 6:30 AM | Posted By : Mark Drew
Related Categories: coldfusion, snipex, cfeclipse

After a busy few months in conferences I can finally get back to tidying stuff off my desk. So to start the ball rolling, I have released to RiaForge the server components for the SnipEx functionality in CFEclipse.

Its a pretty simple setup, 2 tables and 2 CFC's that make up the whole application. Once you have created the tables, just create a new entry in the lib table that defines your server, and then add any libraries you want to add (they are children of the root and you can make tree sets like this) and then start adding your snippets.

It should be pretty well documented as a server. To attach your server in CFEclipse, open the Snippets View, then click on the down arrow at the top of the view and click "Edit SnipEx Servers" and enter the URL to the SnipEx.cfc

I have also checked in the code into RiaForge so if you need to send me any patches just check out the code into CFEclipse from SVN.

Oh, and this is my little pressie to you all on my birthday!

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
Big Mad Kev's Gravatar Happy Birthday Pal,

And once again you amaze us all with your dedication :)

And thanks for the present
# Posted By Big Mad Kev | 7/11/07 6:34 AM
jax's Gravatar Happy birthday !

Sounds pretty cool. Allthough I ran into the following: Your corresponding riaforge page states that cfeclipse 1.3.2 is a requirement but I can't seem to be able to update to this version though.. Have I missed sometyhing ?
# Posted By jax | 7/11/07 8:12 AM
Mark Drew's Gravatar Actually the requirement is 1.3.1.5 so I shall update the riaforge page.

Thanks for spotting that!
MD
# Posted By Mark Drew | 7/11/07 8:52 AM
jax's Gravatar You're welcome. :-)

Cant get it to work though. According to its log Eclipse throws a
java.lang.IllegalArgumentException: Argument cannot be null
When trying to refresh the tree..

let me know if you want the full stacktrace, and/or if you want me to file it as a bug somewhere.
# Posted By jax | 7/11/07 10:34 AM
Mark Drew's Gravatar Email me offline and send me the stack and the process you went to install it. You *DID* read the readme.txt file didn't you?

MD
# Posted By Mark Drew | 7/11/07 10:56 AM
Lola LB's Gravatar Thank you! Will there be a screencast explaining how to use SnipEx?
# Posted By Lola LB | 7/11/07 11:20 AM
Mark Drew's Gravatar Yes! But not tonight, I shall be far too drunk to be doing such crazyness!

MD
# Posted By Mark Drew | 7/11/07 11:26 AM
jax's Gravatar >You *DID* read the readme.txt file didn't you?

:-)

Only as a last resort of course.
Have sent you an email.
# Posted By jax | 7/11/07 11:32 AM
johnb's Gravatar I get an error if i try to connect to www.cflib.org/snipex/snipex.cfc - it looks like there is one there...
# Posted By johnb | 7/11/07 2:37 PM
Mark Drew's Gravatar Hmm.. maybe back to the drawing board
... (but not today, its my birthday dammit, no coding!)
# Posted By Mark Drew | 7/11/07 2:42 PM
Mark Drew's Gravatar I just checked and Ray is getting an error "An error occured while Parsing an XML document" so it isnt on CFEclipse's side...
# Posted By Mark Drew | 7/11/07 2:43 PM
Raymond Camden's Gravatar Sorry folks. I'll tyr to have this fixed asap. I'll post back when done.

I'm going to blame Mark though. Somehow this is his fault....
# Posted By Raymond Camden | 7/11/07 2:57 PM
Raymond Camden's Gravatar CFLib is fixed.

Mark - when I added CFLib as a Snipex, I noticed in the UI I had a node w/ no title. Just a blank node. I expanded it and saw my stuff, but is there no way to title a snipex server?
# Posted By Raymond Camden | 7/11/07 3:32 PM
Lola LB's Gravatar Still having issues with cflib . . . restarted Eclipse with -clean and this is what I see in terminal when I try to click on cflib node:

LibraryHandler failed:http://www.cflib.org/snipex/snipex.cfc - org.xml.sax.SAXParseException: Premature end of file.

When I check the url in browser, the xml comes out just fine . . .
# Posted By Lola LB | 7/11/07 3:48 PM
Jim Priest's Gravatar I just added some info on the wiki SnipEx page...

http://trac.cfeclipse.org/cfeclipse/wiki/SnipEx

If you have a public SnipEx server - please feel free it add it or send me a link.
# Posted By Jim Priest | 7/11/07 3:51 PM
Sam Smith's Gravatar Happy Brithday [sic] Mark! I'll be sending you a Jack and Coke through the ether.
# Posted By Sam Smith | 7/11/07 6:24 PM
Chrisitan Ready's Gravatar I set up the server locally, but I have to ask the great dumb question - how does one create sub-libraries and add snippets to the library?
# Posted By Chrisitan Ready | 7/11/07 6:56 PM
Scott P's Gravatar very very cool.
# Posted By Scott P | 7/12/07 3:09 AM
Kevin Penny's Gravatar hey Mark - just trying to get things setup - I have the code installed ok - with the snipex.cfc which will return a valid xml document, and I've added 3 libraries to the lib table - each with a parent id of 1 (was 0 before and my xml was empty). In cfeclipse i have the snipex server set to the server url /snipex.cfc - i.e. http://snipex.myservername.com/snipex.cfc - but I get an error in cfeclipse when I try to export a snippet - says error check log on step 2 after I enter my email address etc, w/in cfeclipse. Any clues?
# Posted By Kevin Penny | 7/19/07 10:19 PM
Kevin Penny's Gravatar ok - looks like there's something wrong with something at my url - http://snipex.hotgigs.com/snipex.cfc - as soon as I put that into the cfeclipse snipex list of urls, and reload - it says 'An error has occurred. See error log for more details.'
# Posted By Kevin Penny | 7/19/07 10:44 PM