Mark Drew (Redux)- cf_etc...

a compendium of railo, cfml, cfeclipse and technology topics

Mark Drew (Redux)- cf_etc...

CFEclipse's SnipEx server components released

July 11, 2007 · 21 Comments

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!

Tags: cfeclipse · coldfusion · snipex

21 responses so far ↓

  • 1 Big Mad Kev // Sep 22, 2008 at 4:12 PM

    Happy Birthday Pal,

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

    And thanks for the present
  • 2 jax // Sep 22, 2008 at 4:12 PM

    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 ?
  • 3 Mark Drew // Sep 22, 2008 at 4:12 PM

    Actually the requirement is 1.3.1.5 so I shall update the riaforge page.

    Thanks for spotting that!
    MD
  • 4 jax // Sep 22, 2008 at 4:12 PM

    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.
  • 5 Mark Drew // Sep 22, 2008 at 4:12 PM

    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
  • 6 Lola LB // Sep 22, 2008 at 4:12 PM

    Thank you! Will there be a screencast explaining how to use SnipEx?
  • 7 Mark Drew // Sep 22, 2008 at 4:12 PM

    Yes! But not tonight, I shall be far too drunk to be doing such crazyness!

    MD
  • 8 jax // Sep 22, 2008 at 4:12 PM

    >You *DID* read the readme.txt file didn't you?

    :-)

    Only as a last resort of course.
    Have sent you an email.
  • 9 johnb // Sep 22, 2008 at 4:12 PM

    I get an error if i try to connect to www.cflib.org/snipex/snipex.cfc - it looks like there is one there...
  • 10 Mark Drew // Sep 22, 2008 at 4:12 PM

    Hmm.. maybe back to the drawing board
    ... (but not today, its my birthday dammit, no coding!)
  • 11 Mark Drew // Sep 22, 2008 at 4:12 PM

    I just checked and Ray is getting an error "An error occured while Parsing an XML document" so it isnt on CFEclipse's side...
  • 12 Raymond Camden // Sep 22, 2008 at 4:12 PM

    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....
  • 13 Raymond Camden // Sep 22, 2008 at 4:12 PM

    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?
  • 14 Lola LB // Sep 22, 2008 at 4:12 PM

    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 . . .
  • 15 Jim Priest // Sep 22, 2008 at 4:12 PM

    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.
  • 16 Sam Smith // Sep 22, 2008 at 4:12 PM

    Happy Brithday [sic] Mark! I'll be sending you a Jack and Coke through the ether.
  • 17 Chrisitan Ready // Sep 22, 2008 at 4:12 PM

    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?
  • 18 Scott P // Sep 22, 2008 at 4:12 PM

    very very cool.
  • 19 Kevin Penny // Sep 22, 2008 at 4:13 PM

    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?
  • 20 Kevin Penny // Sep 22, 2008 at 4:13 PM

    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.'
  • 21 Ryan Stille // Sep 22, 2008 at 4:14 PM

    I am trying to setup a snipex server... ran into some problems at first, wouldn't work right until I went back in and edited the timestamps in my root node. But now its showing up in CFEclipse. But when I try to export one of my snippets to it, I get to what I think is the last step in the wizard and then nothing happens. Clicking Next or Finish does not close the wizard.

Leave a Comment