Snipex Code Released - CFLib Available in Eclipse

Mark Drew has released the code for SnipEx. This allows anyone to setup a Snippets server for Eclipse. How is this useful? You can now browse the entire CFLib library directly from Eclipse. No more need to ignore my annoying ads. Just add:

http://www.cflib.org/snipex/snipex.cfc

As a SnipEx server. I noticed that the node shows up blank, but when you expand it, you will see all the CFEclipse Libraries and UDFs. You can then click for a description or double click to insert a UDF. How freaking cool is that?

I'm going to be doing a bit of work on the XML when I can. I noticed the libraries are not sorted so I'll try to fix that.

Comments

Chris Jordan's Gravatar Ray,

You say,"Just add: http://www.cflib.org/snipex/snipex.cfc";, but you don't say where to add it.
# Posted By Chris Jordan | 7/11/07 11:52 AM
todd sharp's Gravatar Chris: See Mark's post that Ray linked to.
# Posted By todd sharp | 7/11/07 11:58 AM
Jim Priest's Gravatar I just update the CFEclipse wiki with some info:

http://trac.cfeclipse.org/cfeclipse/wiki/SnipEx
# Posted By Jim Priest | 7/11/07 1:21 PM
Raymond Camden's Gravatar I don't get it. How do you see "CFLib" in the UI and I don't? I mean it works and all, but my node is blank.
# Posted By Raymond Camden | 7/11/07 1:24 PM
Jim Priest's Gravatar Ray, I had to restart CFEclipse before I saw anything...
# Posted By Jim Priest | 7/11/07 1:29 PM
Raymond Camden's Gravatar Nope. I just restarted. To be clear, I _have_ a connection to CFLib, I can browse the libs just fine. Its just that top level node is still blank. It has no label.
# Posted By Raymond Camden | 7/11/07 1:33 PM
Chris Jordan's Gravatar @Todd: Thanks man, I can't believe I missed that. I also missed that this was a 1.3.1.5 thing. Color me stupid. :o/ Well, it's a good thing it made me get off my lazy duff and install the newest CFE.

Cheers!
# Posted By Chris Jordan | 7/11/07 2:01 PM
Jim Priest's Gravatar @Ray - have you tried removing the SnipEx URL, restarting and trying again? I imagine it's pulling that from the XML:

(snipex createdAt="" id="" name="CFLib" updatedAt="")

Or maybe it's a Mac thing? I'm on WinXP?

I noticed it doesn't show up in this screenshot on Mark Drew's site:
http://www.markdrew.co.uk/blog/enclosures/snipex_5...
# Posted By Jim Priest | 7/11/07 2:08 PM
Robb's Gravatar CFEclipse SnipEx server location works CFlib.org doesn't.
CFEclipse 1.3.1.5 and eclipse 3.3 getting a Null argument error.
# Posted By Robb | 7/11/07 3:14 PM
Raymond Camden's Gravatar I'm afraid you may need to hit Mark for this. Outside of the blank label it is working fine for me. :(
# Posted By Raymond Camden | 7/11/07 3:18 PM
Chris Jordan's Gravatar @Ray - I don't seem to be getting *all* of the udf's in the lib. For instance the String Library only shows a handful (around six) udfs.

Is that the way it's supposed to be?
# Posted By Chris Jordan | 7/11/07 3:57 PM
Raymond Camden's Gravatar -sigh-

Blame the darn XMLFormat bug. There is a "high" character that is being ignored by XMLFormat, and therefore breaking the XML. This is one bug that didn't get fixed in CF8 that I really wished they would have fixed. :(
# Posted By Raymond Camden | 7/11/07 4:12 PM
Chris Jordan's Gravatar oh. Sorry. I didn't mean to pour salt in an old wound. ;o)
# Posted By Chris Jordan | 7/11/07 4:38 PM
Raymond Camden's Gravatar Yeah I'm at a point where I'm pulling my hair out. :(
# Posted By Raymond Camden | 7/11/07 5:29 PM
Raymond Camden's Gravatar The XML is fixed now, however, I only see a few entries in StrLib. When I view the XML directly, I see a butt load. Going to bug Mark on this.
# Posted By Raymond Camden | 7/11/07 10:10 PM
Joe Danziger's Gravatar I can browse just fine but when I double-click one to add it, all of the HTML characters are in their entity notations (e.g. < >). Very cool though!
# Posted By Joe Danziger | 7/12/07 3:22 PM
Raymond Camden's Gravatar Should be fixed now. You need to go into your workspace folder, .metadata/.plugins/.org.cfeclipse.cfml/snipex, and remove the XML and restart Eclipse.
# Posted By Raymond Camden | 7/12/07 3:56 PM
Joe Danziger's Gravatar Yup, working like a charm! Thanks Ray!
# Posted By Joe Danziger | 7/12/07 5:48 PM
Jason's Gravatar Ray, it appears that library id 5 has some xml formatting issues.

http://www.cflib.org/snipex/snipex.cfc?libid=5

Just wanted to bring it your your attention if you were not aware ;). Also thanks for making this available.
# Posted By Jason | 7/16/07 7:13 AM
Raymond Camden's Gravatar Should be fixed now, but you will need to clear your SNipEx cache. I'm about to post a new blog entry on how to do that.
# Posted By Raymond Camden | 7/16/07 8:26 AM
Jason's Gravatar Yep, works like a charm! Thanks Ray!
# Posted By Jason | 7/16/07 8:30 AM
Speeves's Gravatar It seems that the cflib DSN no longer exists:

http://www.cflib.org/snipex/snipex.cfc

Datasource cflib could not be found.

Resources:

* Enable Robust Exception Information to provide greater detail about the source of errors. In the Administrator, click Debugging & Logging > Debug Output Settings, and select the Robust Exception Information option.
* Check the ColdFusion documentation to verify that you are using the correct syntax.
* Search the Knowledge Base to find a solution to your problem.

Browser    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.7) Gecko/2009030422 Ubuntu/8.10 (intrepid) Firefox/3.0.7
Remote Address    130.71.136.59
Referrer    http://www.coldfusionjedi.com/index.cfm/2007/7/11/...
Date/Time    20-Mar-09 02:53 PM
# Posted By Speeves | 3/20/09 1:53 PM
Raymond Camden's Gravatar I recently moved servers and forgot to set this DSN up. I'll fix it soon.
# Posted By Raymond Camden | 3/20/09 1:58 PM
Raymond Camden's Gravatar Fixed.
# Posted By Raymond Camden | 3/20/09 2:09 PM