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.

Archived Comments

Comment 1 by Chris Jordan posted on 7/11/2007 at 8:52 PM

Ray,

You say,"Just add: http://www.cflib.org/snipex...", but you don't say where to add it.

Comment 2 by todd sharp posted on 7/11/2007 at 8:58 PM

Chris: See Mark's post that Ray linked to.

Comment 3 by Jim Priest posted on 7/11/2007 at 10:21 PM

I just update the CFEclipse wiki with some info:

http://trac.cfeclipse.org/c...

Comment 4 by Raymond Camden posted on 7/11/2007 at 10:24 PM

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.

Comment 5 by Jim Priest posted on 7/11/2007 at 10:29 PM

Ray, I had to restart CFEclipse before I saw anything...

Comment 6 by Raymond Camden posted on 7/11/2007 at 10:33 PM

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.

Comment 7 by Chris Jordan posted on 7/11/2007 at 11:01 PM

@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!

Comment 8 by Jim Priest posted on 7/11/2007 at 11:08 PM

@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/b...

Comment 9 by Robb posted on 7/12/2007 at 12:14 AM

CFEclipse SnipEx server location works CFlib.org doesn't.
CFEclipse 1.3.1.5 and eclipse 3.3 getting a Null argument error.

Comment 10 by Raymond Camden posted on 7/12/2007 at 12:18 AM

I'm afraid you may need to hit Mark for this. Outside of the blank label it is working fine for me. :(

Comment 11 by Chris Jordan posted on 7/12/2007 at 12:57 AM

@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?

Comment 12 by Raymond Camden posted on 7/12/2007 at 1:12 AM

-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. :(

Comment 13 by Chris Jordan posted on 7/12/2007 at 1:38 AM

oh. Sorry. I didn't mean to pour salt in an old wound. ;o)

Comment 14 by Raymond Camden posted on 7/12/2007 at 2:29 AM

Yeah I'm at a point where I'm pulling my hair out. :(

Comment 15 by Raymond Camden posted on 7/12/2007 at 7:10 AM

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.

Comment 16 by Joe Danziger posted on 7/13/2007 at 12:22 AM

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!

Comment 17 by Raymond Camden posted on 7/13/2007 at 12:56 AM

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.

Comment 18 by Joe Danziger posted on 7/13/2007 at 2:48 AM

Yup, working like a charm! Thanks Ray!

Comment 19 by Jason posted on 7/16/2007 at 4:13 PM

Ray, it appears that library id 5 has some xml formatting issues.

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

Just wanted to bring it your your attention if you were not aware ;). Also thanks for making this available.

Comment 20 by Raymond Camden posted on 7/16/2007 at 5:26 PM

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.

Comment 21 by Jason posted on 7/16/2007 at 5:30 PM

Yep, works like a charm! Thanks Ray!

Comment 22 by Speeves posted on 3/20/2009 at 10:53 PM

It seems that the cflib DSN no longer exists:

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

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.c...
Date/Time 20-Mar-09 02:53 PM

Comment 23 by Raymond Camden posted on 3/20/2009 at 10:58 PM

I recently moved servers and forgot to set this DSN up. I'll fix it soon.

Comment 24 by Raymond Camden posted on 3/20/2009 at 11:09 PM

Fixed.

Comment 25 by Jen posted on 7/14/2009 at 6:31 PM

Ray,
This is fabulous but I can't get the UtilityLib to load anything after the Magic8Ball. I cleared my SnipEx cache and reloaded the SnipEx code and still no luck.

Comment 26 by Raymond Camden posted on 7/14/2009 at 7:12 PM

Not sure what to suggest. I viewed the info directly in my browser, http://www.cflib.org/snipex..., and didn't see anything amiss. May want to ping the CFEclipse folks - I'm a purely ColdFusion Builder guy now. ;)

Comment 27 by Raymond Camden posted on 7/14/2009 at 7:13 PM

You can browse CFLib via ColdFusionBuilder now:

http://cflibextension.riafo...

Comment 28 by Raymond Camden posted on 7/14/2009 at 7:16 PM

Oh snap - I see a funky char in the UDF description. I'll edit the baby out and it should fix it for you.

Comment 29 by Raymond Camden posted on 7/14/2009 at 7:17 PM

It should work better for you now - may want to clear your cache though.

Comment 30 by Jen posted on 7/14/2009 at 7:53 PM

Thanks, Ray. It makes it all the way to SiNo now. Better, but I think there are some more after that.

Would love to use ColdFusion Builder but I can't seem to get it to wrap source code. I don't like horizontal scrolling when I code and some code can't be broken across several lines manually.

Comment 31 by Raymond Camden posted on 7/19/2009 at 12:37 AM

Check Terry Ryan's blog, I believe he posted this tip.

Here ya go: http://www.terrenceryan.com...

Comment 32 by Mitch McKenzie posted on 10/21/2011 at 8:55 PM

I receive an error when I attempt to run this plugin:

Error Occurred While Processing Request
Invalid CFML construct found on line 160 at column 25.
ColdFusion was looking at the following text:
for

The CFML compiler was processing:

A script statement beginning with for on line 160, column 25.
A script statement beginning with { on line 157, column 65.
A script statement beginning with for on line 157, column 17.
A script statement beginning with public on line 147, column 9.

The error occurred in C:\ColdFusion9\wwwroot\CFLib Browser\handlers\components\builderHelper.cfc: line 160

158 : var fieldOb = tableOb.field[x];
159 : var field = {};
160 : for(var key in fieldOb.xmlAttributes) {
161 : field[key] = fieldOb.xmlAttributes[key];
162 : }

Comment 33 by Raymond Camden posted on 10/21/2011 at 10:12 PM

Are you running 901 or just 9?

Comment 34 by Mitch McKenzie posted on 10/22/2011 at 1:05 AM

I upgraded to 9.01 and that fixed the issue. Thanks Ray.