Sep
4

SnipEx and Caching

Posted by Aaron West at 1:58 PM in ColdFusion, CFEclipse, SnipEx

I recently set up a SnipEx server at work and blew about 2 hours trying to get things online and working inside of CFEclipse 1.3.1.5. The problem was with the Snip Tree View caching the SnipEx server's XML content. Since I used the CFLib SnipEx server as a test, I knew it was possible to get a snippets server up and running. I just couldn't figure out why no amount of Eclipse restart (with -clean) or Snip Tree View refresh would cause my snippets to show up in the panel. They were showing just fine if I invoked the CFC methods directly in a browser.

The problem surrounded how the Snip Tree View caches the XML content it retrieves. I'm not sure why you would want to do this and I believe Mark is going to fix this in a future release of SnipEx. Nevertheless, if you need to "refresh" snippets served by SnipEx (like when you add a new snippet) you'll want to delete all the XML files in your SnipEx directory. You will likely need to do this several times as you setup your SnipEx server.

On Windows, the path may look like:
C:\Documents and Settings\[username]\[workspace_name]\.metadata\.plugins\org.cfeclipse.cfml\snipex\

Delete everything in the snipex directory and refresh the Snip Tree View panel and you'll be set.

Aaron West's Gravatar
About this post:

This entry was posted by Aaron West on September 4, 2007 at 1:58 PM. It was filed in the following categories: ColdFusion, CFEclipse, SnipEx. It has been viewed 6322 times and has 2 comments.

2 Responses to SnipEx and Caching

  1. Ran into this myself as well:

    http://www.coldfusionjedi.com/index.cfm/2007/7/16/...

    Just posting my URL as my example showed the paths in OSX.

  2. I meant to post the URL to your blog entry as I had read it before posting mine. Yea, I forgot. Thanks Ray.

Leave a Reply

Leave this field empty

If you subscribe, any new posts to this thread will be sent to your email address.

RSS