Matt Woodward's posterous

Matt Woodward's posterous

Matthew Woodward  //  * CFML, Grails, and Java Developer
* Principal IT Specialist, US Senate
* Open BlueDragon Steering Committee Member
* All-Around Geek

Nov 13 / 8:50am

SpringSource Tool Suite 2.5.1 Update Fails, and the Fix

Ever since I started using SpringSource Tool Suite I don't think I've ever been able to update it successfully through the normal Eclipse update process. STS 2.5.1 was released yesterday and sure enough, my update failed. At least this time I got a discrete enough error that I was able to find a solution.

If your update fails with an error along the lines of "could not remove directory {your_sts_dir}/dropins" then as the bug link above states, just create an empty file in that directory and it'll work (I just did 'touch foo' to get something in there).

Supposedly this issue will be fixed in the next release. Hopefully I can update to that one to find out. ;-)

Filed under  //  Eclipse   SpringSource Tool Suite  
Oct 18 / 6:38pm

Fix for Eclipse Menu Issues in Ubuntu 10.10 Netbook Edition

This is but one of the many,many reasons I love free software.

In my previous post about Ubuntu 10.10 Netbook Edition I pointed out there are some issues with the menus in some applications, which in my case I ran into with Eclipse (actually SpringSource Tool Suite). I posted to the Ubuntu Forums and in no time a kind user pointed me to this bug report (which I somehow missed in my searches before posting to the forums), and also provided the fix for the issue which is simple enough. Basically you just have to tell Ubuntu not to use its own menus when you start the application, so from a terminal you do this to start the app:

UBUNTU_MENUPROXY= /home/mwoodward/sts/STS

Note that there is a space after the equals sign. Of course if you're having this issue with another application you'd just substitute the path to that application where I have /home/mwoodward/sts/STS And you can obviously throw this into a launcher script so you don't have to remember to type this every time.

I was also having problems with the menus on UltraEdit so I was happy to see this fix resolved those issues as well. With a workaround for this issue I now give the Unity interface a grade of a nice solid B as opposed to the C I gave it in my previous post. There are still some quirks here and there but at least now I can use STS without any issue.

I'm always amazed, yet never surprised, at the excellent support available from the community of free software projects. With commercial software you pay for support, and in my experience it isn't very good as a rule, but with free software you have legions of users at the ready to help other users, and you can also pay for commercial support if you so need or desire.

What's not to love?

Filed under  //  Eclipse   GNU/Linux   Java   Linux   Ubuntu  
Apr 7 / 4:26pm

Getting Rid of Subversion Native Library Not Available Error in Eclipse on Ubuntu

Svn_error

If you use Eclipse and Subclipse, chances are you've see the "Subversion Native Library Not Available" error (see attached pic). Things tend to work fine even if you see that error (at least they did for me), but I finally took the time the other night to get to the bottom of it and fix it in the easiest way possible.

First, do this:

sudo apt-get install libsvn-java

Next, do this:

sudo cp /usr/lib/jni/* /usr/lib

Now I said "easiest way possible" above because you can monkey around with eclipse.ini -VMARGS and all sorts of other nonsense, but chances are none of those solutions will work if you actually want to use a launcher to launch Eclipse.

So do yourself a favor, drop the files where Eclipse expects to find them, and get on with your life. (As you can tell, I spent more time on this than I wanted to, so I'm simply trying to help others avoid this same fate.)

Filed under  //  Eclipse   Subclipse   Subversion   Ubuntu  
Nov 2 / 9:46am

Problems with Eclipse buttons in Ubuntu 9.10 | Norio

After upgrading to Ubuntu 9.10 (Karmic Koala) some buttons no longer work in Eclipse 3.5. Clicking has no effect but keyboard shortcuts still work.

It looks like Eclipse is doing some nasty stuff advanced hacking in SWT on GTK. This bug is fixed in 3.6M2 but you can work around the issue in Eclipse 3.5 by launching Eclipse through the following small shell script (assuming Eclipse is installed in /opt/eclipse-3.5):

#!/bin/sh
export GDK_NATIVE_WINDOWS=1
/opt/eclipse-3.5/eclipse

If you're having this issue it will rear its ugly head when you try to do things like create a new project or add a software repository to your updates list--you'll click the "next" or "OK" button and nothing will happen. Glad there's an easy workaround, this has been driving me nuts all morning!

Filed under  //  Eclipse   Ubuntu  
Feb 4 / 4:42pm

A Week With CFEclipse

I finally felt like I was at a point with projects, etc. that I could try CFEclipse this week. When I want to try a new piece of software (or when I switched from the PC to the Mac for example), I always try to give it a real try, meaning I abandon my old tool/program/computer/what have you and only use the new tool for an entire week. So this week I shut down Dreamweaver MX 2004 and fired up CFEclipse to see how it would go.

 

I have to admit this wasn't my absolute first time using Eclipse, but I'd only really dabbled before or used it when I was doing some Java stuff (for which Dreamweaver is absolutely horrendous). I really love some of the features so I was pretty sure I'd take right to it, but you never know until you cut the cord and only use the new tool.

When I did this one-week trial with a Mac I never went back to a PC and it's looking like this is going to be the case with CFEclipse as well. I kept expecting there would be several "I wish I could do X like I did in Dreamweaver," but it didn't happen once, and there's a lot CFEclipse has going for it over Dreamweaver. I won't go into this in detail since you've probably read about CFEclipse before in other blogs; this entry is more just to serve as one more CFer singing its praises and to be counted amongst the converted.

Couple things I noticed.


  • The colored syntax-highlighting doesn't always update properly. This is apparently a known issue so I'm sure it will be fixed shortly.

  • When I open XML files they don't seem to have syntax highlighting (it's all black text). Probably a setting I just need to dig for.

That really is pretty much it, believe it or not! The one huge thing I'd love to see that I also know is in the works is the ability to FTP right from the file browser. That's the one thing I miss from Dreamweaver, but the rest of Eclipse is good enough that I'll live without it for a while.

I'll still be using Dreamweaver on my PC for work because we do a lot with Contribute and use Dreamweaver templates pretty heavily, but when I'm doing my own stuff or doing coding that doesn't involve DW templates, CFEclipse has definitely become my main IDE. Time to start digging deeper and seeing what other cool Eclipse plugins there are out there ...

Kudos to Spike and the whole CFEclipse team--keep up the fantastic work!

Comments

Matt, check out http://www.dopefly.com/pages/cfeclipse.cfm for links to XML, JS and CSS plug-ins. I just setup Eclipse on Monday. Finally got my current project into CVS and figured I'd see how the integration went. FYI, there's an issue between the latest version of CVS and the latest release of Eclipse. Hopefully another build of Eclispe will fix it. Also, I got the XML plug-in to work, but the CSS and JS ones are giving me a hell of a time. Now if someone could just tell me how to change the editor's background color, I could overlook the problems I've had. :)
Very cool--now that I'm going to be using this full time I really need to get familiar with what all is out there. Good to know on CVS. There's another set of add-ons that Simeon (http://www.simb.net) pointed me to called "MyEclipse" (http://myeclipseide.com/). Looks like some pretty neat stuff for a pretty nominal price. They have a free trial so I think I'm going to check this out as well. My other annoyance I failed to mention is that on the Mac, when you launch Eclipse and tell it to keep it in your dock, on subsequent launch attempts from the dock it doesn't work. Any Mac users know what's up with that?
I'm just trying the new build for the first time myself. Maybe someone reading here can help? Any idea how the css editor dopefly suggested works? Or what it does? On a new css file it pops up values after the attibutes, that's it. No closing of brackets, no suggestions when typing an attribute. On an existing css file it wouldn't even do that. I beieve I have the js editor plugin installed (how do I even check? It's in the plugins folder) but doesn't appear to do anything. How to make toolbar items for the different editors, or add custom buttons to toolbars? Also, I closed the errors tab on the bottom bar and can see no way to get it back now. Any suggestions? It also uses about twice the memory of HS+, but the popup selector in cfscript alone is worth that.
There's a webdav/ftp plugin that you can get that allows you to "export" to an ftp site...
> Now if someone could just tell me how to change the editor's background color, I could overlook the problems I've had. :) Window>preferences>CFEclipse>CFML Colours ... the very last one ;) > My other annoyance I failed to mention is that on the Mac, when you launch Eclipse and tell it to keep it in your dock, on subsequent launch attempts from the dock it doesn't work. Any Mac users know what's up with that? I've just dragged icon it to the launcher bar (with the app closed) and it launches fine that way... If you still can't get it to work right post to the CFE list and we'll get you going >beieve I have the js editor plugin installed (how do I even check? It's in the plugins folder) but doesn't appear to do anything. Open a file with a .js extension if it is color coded and you have an outline sall good >Also, I closed the errors tab on the bottom bar and can see no way to get it back now. Look in Window>Show View>Other... Cheers
Thanks Critter, I've seen the webdav/ftp plugin but (unless I'm using a different one than what you're talking about) it's for transferring the whole project at once. Being able to do a single file at a time directly from the file tree would be really handy. My understanding is that this is in the works.
Cool Rob, dragging it to the dock worked. That must be a different action somehow than launching it and choosing "keep in dock" on the context menu. When I launch Eclipse I do get two Eclipse icons on the dock, and the second one goes away when I quit, but at least I can launch it from the dock now!
>>Open a file with a .js extension if it is color coded and you have an outline sall good -yes, color-coded, but doesn't seem to offer any features that I can see yet. Hmmm. >>Look in Window>Show View>Other... -thanks! If anyone knows a simple way to add buttons and toolbars, or where to read up on that...
Thanks for the info about CFEclipse.
Filed under  //  CFEclipse   ColdFusion   Eclipse