While working on some bugs in the CFLib SnipEx server, Mark Drew sent me a great tip on how to clear the cache in CFEclipse. Right now it is a manual process, but Mark will be adding a refresh option to the UI soon. So to clear your SnipEx cache, drop down to the command line and....
- Change to your Eclipse workspace. Mine was at /Users/ray/Documents/workspace
- Change to .metadata/.plugins/org.cfeclipse.cfml/snipex
- Delete all XML files
- Restart Eclipse
That's it. During development it makes sense to just keep a window open there so you can do this a bit more quicker. (By development I mean if you are working on your own SnipEx server.)
So CFLib has had some issues with SnipEx, mainly with UDFs that don't work well in the XML feed. I've been removing the UDFs temporarily and this morning I just removed another another one. If you have trouble loading a library, please clear your cache first, then try again, and let me know.
p.s. Now that I've got a nice XML version of CFLib, my next "for fun" project will be an AIR client for CFLib!
Archived Comments
I just figured this out over the weekend too. I did not read the directions to thoroughly before setting up the snipex server, so it wasn't working correctly. I ended up doing a search for the snipex server name or something inside the workspace directly, deleted those files and to my suprise it was working when I restarted cfeclipse. Pretty darn neat how it works. I connected CFLib and it worked great too.
-Randy
you dont need to restart Eclipse, you can just click the refresh snippets icon and it will do the same thing.
I have added (in the code, not a release yet) a dialog that asks you if you want to delete your snipex cache too when you click the refresh button... so that should help.
As a note, I have also started a snipex mailinglist over at google: http://groups.google.com/gr...
Nice, thanks for the clarification there. Certainly the 'restart eclipse' part was the slowest, so that makes things nicer!